getting list of friends from facebook

瘦欲@ 提交于 2019-12-24 12:00:32

问题


Facebook API does not provide friends list of people using our fb app, according to their developer faq page. But still, websites like nimble and the live example of socialauth are able to get the names of people on our friend list, even those who do not use their app. Please, can any one help me with how this work?

The read_friendlist permission gives only name of lists like 'close friends', 'aquaintance' etc. the user_friends permission gives only the list of people in our friendlist who use our app. What all api permssions do we need to get the full friend list?

I am trying to make an address book by importing contacts from google, facebook etc. using socialauth. Had success with google.


回答1:


Those websites are probably using older Apps with v1.0 - it will stop working for them after end of April 2015. You can only use v1.0 with an App created before end of April 2014.




回答2:


All 'friends_*' permissions have been removed from new version 2.1 You can use 'user_friends'

https://developers.facebook.com/docs/apps/upgrading https://developers.facebook.com/docs/apps/changelog

For fetching app users user 'me/friends'

For more friends use 'me/taggable_friends' . Remember it will still not return whole friends.

In new facebook api version there is no way to fetch whole friend list at one time



来源:https://stackoverflow.com/questions/26113532/getting-list-of-friends-from-facebook

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!