Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

User Friends permission in Facebook

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?

like image 990
Vikram Avatar asked Jul 12 '19 15:07

Vikram


2 Answers

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.

like image 89
Aminadav Glickshtein Avatar answered Oct 12 '22 19:10

Aminadav Glickshtein


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.

like image 36
陳威成 Avatar answered Oct 12 '22 20:10

陳威成