开发者

Extract Links from Facebook activity feed

开发者 https://www.devze.com 2023-02-02 20:10 出处:网络
I\'m trying to get the links from a facebook activity feed, i\'ve tried extracting the HTML from the iframe, 开发者_如何学Cbut this doesn\'t work because of cross domain. Then I tried cURL but that do

I'm trying to get the links from a facebook activity feed, i've tried extracting the HTML from the iframe, 开发者_如何学Cbut 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?


It is not possible, basically it requires your session that you can't maintain in iframe, I tried this some days ago through file_get_contents and cURL but nothing works.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消