User Friends permission in Facebook

3k Views Asked by At

I'm trying to add user_friends permission from facebook in my app. But I'm unable to test this feature cause i'm unable to get user_friends permission for test users.

I have tested my feature on test-app and with it's test users. But while submitting it to facebook (for review) we need to upload actual app not test app. And on actual prod app test users I'm unable to test friends feature.

I tried to update test users permission in prod app dashboard but it's not showing user_friends permission in list.

Can someone pls help in how we can test these permission in actual prod app before submitting?

3

There are 3 best solutions below

0
Aminadav Glickshtein On

It seems waht you see, is because today, by using user_friends permission, you will receive only the user friends who already using the app. Not all the friends.

Grants an app permission to access a list of friends that also use said app. This permission is restricted to a limited set of partners and usage requires prior approval by Facebook.

https://developers.facebook.com/docs/facebook-login/permissions/#reference-user_friends

For those users you will not get the real Facebook UID, only a scoped UID for your app.

1
陳威成 On

1.check your app is "Developmet Mode" on facebook developer Page.(very important)

2.using Role > Test user build two Role. (Authorize Test Users for This App Set Yes)

3.add Permission user_friends(Only appear on "Development Mode" or review passed)

4.choice edit > Manage_Friend > Add_friend.

5.try two test user and report to me.

0
orszaczky On

In my case the solution was - in the Test User Accounts list to click the dots in the options column next to each test user, select Change permissions granted to this app, and add user_friends to the permissions. This had to be done for each test user, to get their friends list in the app.

Interestingly the api should only return the friends who are also registered to app. In case of test users it returned all of their friends for some reason...

enter image description here