开发者

Use python to get friendslists on facebook

How can i use python to login to fac开发者_开发技巧ebook, grab a friendlist from my friends and use the data to see if my friends are facebook buddies ?

Thanks for your help :-)


First off, you won't be able to get access to your friends' friends list unless they themselves authorize your application.

This being said, you can try the pyfacebook library with the friends.get() method or the new graph API.

https://graph.facebook.com/me/friends will get a list of your friends then
https://graph.facebook.com/{{ID}}/friends will get the friends of your friend with id {{ID}}

HTH

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜