Wibblefish
Wibblefish

Reputation: 163

Making Friend Connections For Test Users

Using the Roles dashboard, I can create Facebook test user accounts but when trying to make them friends with each other via ticking appropriate accounts and then the 'make friends' button seems to do absolutely nothing.

I have then tried to make these accounts friends via the api call:

https://graph.facebook.com/{test user id 1}/friends/{test user id 2}?method=post&access_token={test user 1 access token}

This results in an OAuth Exception being returned:

{"error":{"message":"Error validating application.","type":"OAuthException"}}

This feature has worked previously for me (clicking the make friends button). Has anyone got any ideas on how to resolve this problem?

Upvotes: 10

Views: 3065

Answers (3)

Nimesh Patel
Nimesh Patel

Reputation: 1496

Now Facebook Resolve this from their End. Any developer can manually create a friend list for test user from developer console.

Follow the Below Steps:

Step-1: Login in Your developer console and click on you app project.

Click on Link to login: Facebook Developer Account Link

Step-2: Inside their you can see Roles click on their and then click on Test Users

See Below attached Images: enter image description here

Step-3: Now click on Add to create number of test user. One Popup is display which you can see in below images. At their you have to mention test user permission which you want to perform.

For example, If you want to fetch list of test user friends then you need user_friends permission.

To get more link about Facebook permission/scope visit Facebook Permission Page enter image description here

Step-4: Here in below image you can see list of test user which you created using step-3. Now you can click on Edit to add those other test user as friend of one another. for that you to click in Manage this test user friends and add other test user name in popup dialog. enter image description here

Similarly you can also assign permission or remove test user once as per your requirement. This is it.

Upvotes: 0

Public Profile
Public Profile

Reputation: 1837

There is ui for it now which is helpful, the only bummer is that I also get the same OAuth exception as the original poster. It'd be nice to be able to do this with an API.

ss

Upvotes: 0

Wibblefish
Wibblefish

Reputation: 163

Apparently this was a bug, you can now go in via the modify roles menu in the application and select users to 'make friends'. This functionality is still pretty buggy but it does work eventually.

Upvotes: 5

Related Questions