I'm trying to get the links from a facebook activity feed, i've tried extracting the HTML from the iframe, but this doesn't work because of cross domain. Then I tried cURL but that doesn't work because of the javascript.
http://developers.facebook.com/docs/reference/plugins/activity
Any ideas?
You could try using a javascript library like jQuery to extract all of the links then send the data to a PHP script but that wouldn't work if your trying to automate it.
Your best bet is to use the Facebook API rather than a social plugin.
这是不可能的,基本上,这需要您无法在iframe中维护的会话,我几天前通过file_get_contents和cURL尝试了此操作,但没有任何效果。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.