1

I realized that the problem I was having on Why is my friend picker fragment empty? was that the fragment run fine, its just since i am using facebook graph version 2.0, it only shows the friends that are currently using the app(none, just me). Is there a workaround or some other permission you can use to have the fragment retrieve all friends, not just the ones using the app?

Community
  • 1
  • 1
committedandroider
  • 8,711
  • 14
  • 71
  • 126

1 Answers1

2

Have a look at https://developers.facebook.com/docs/apps/upgrading#upgrading_v2_0_user_ids

If you're using Graph API v2.0, the endpoint /me/friends will always only show the friends which are also using the app.

Quote:

There are two key use cases where apps need access to non-app friends: tagging and inviting. In v2.0, we've added the Taggable Friends API and the Invitable Friends API to support these flows.

Links:

If you "just" want to show mutual friends which also use the app, you can use the

/{user_id}.context/mutual_friends

... user_friends permission is required to view the mutual friends of other friends using the app.

Have a look at my answer at Fetch Facebook Mutual friends between me and another User

Community
  • 1
  • 1
Tobi
  • 31,405
  • 8
  • 58
  • 90
  • 1
    I did read that. But my app involves messaging(access to all friends), would there be some around this to access the user's complete friend list. I know tinder has an option where you see common friends with another match. That doesn't involve tagging or inviting – committedandroider Aug 26 '14 at 07:02
  • 1
    Therefore, you can use `/{user_id}.context/mutual_friends`. I updated my answer. – Tobi Aug 26 '14 at 07:41
  • 1
    Tobi I noticed that on tinder you can also go to your profile and see friends. Does that mean they all use tinder? – committedandroider Aug 26 '14 at 17:08