facebook graph api..get friends of friends

前端 未结 3 1322
囚心锁ツ
囚心锁ツ 2020-12-31 07:41

I am using the FB graph api to get a list of my friends\' friends using:

https://graph.facebook.com//friends?access_token=
         


        
3条回答
  •  甜味超标
    2020-12-31 08:24

    Privacy permissions.

    As a user, I control who can see my friends list. If I select "Friends only" then only my friends can see my list, not "friends of friends"

    Log into facebook, on the upper right click on Account -> Privacy settings, then Click on "View Settings" under "Connecting on Facebook"

    "See your friends list" is what controls this.

    Edit: Sorry, had to think about that for a minute.

    You can see your friend's friends via the standard Facebook web UI. Your app is not you. Even though you've granted the app access to your account, your friends have not. In that case, you're not going to get back your friend's friends unless they have it set to "Everyone". Your app is not a friend of a friend.

    I believe that's the reason. The other reason could be that their API is renown for being buggy. You could always open a bug report on http://bugs.developers.facebook.net/ and if my supposition is correct, someone will let you know.

提交回复
热议问题