Harvest two pictures from open Facebook profiles
I want to grab 2 pictures from say - 200 FB profiles.
The users can be random, but the photos should be profile pictures - not just from a random album.
Has anyone written anything like this or got any tips for rollin开发者_StackOverflow中文版g my own in PHP or C# ?
Thanks
You can fetch the users picture with this URL:
http://graph.facebook.com/username/picture
Replace username with the user you like to get the photo of.
Also see for other options:
http://developers.facebook.com/docs/api
If you have profile ID's, you can access them through this url:
<img src="http://graph.facebook.com/0000000/picture?type=large" alt="" />
Where obviously the 0000000 is the users profile name or vanintry url name.
You can certainly use: PHP Simple HTML DOM Parser
http://simplehtmldom.sourceforge.net/
You can do fabulous stuff with it.
精彩评论