How to get list of Facebook friends for testing an app, given the new Graph API limitations?

sigil

I'm working on a JS Facebook app that searches the most recent status post from each of my friends, but I've run into a significant development obstacle: As of v2.0 of the Graph API, /me/friends only lists friends who have installed the app.

Here's the code I was using:

function testAPI() {
    console.log('Welcome!  Fetching your information.... ');

    FB.api('/me/friends', function(response) {
        var statusElement=document.getElementById('output');
        statusElement.innerHTML=JSON.stringify(response.data);  
    });
  }

This returned no results, which I assume is because I am the only user who has installed this app. I understand that this is a good change for protecting users' privacy, and I'm not complaining about that.

Some other SO answers suggested using taggable_friends as a workaround, but that requires app review; how can I build and test the app to make it reviewable if I don't have a way to retrieve a sample data set of friends? I could ask some of my friends to install it so that their statuses will be available, but I would rather wait to ask that favor until I'm sure that the app is working properly and won't cause them any problems.

So, how do developers who are starting work on a new app that uses taggable_friends do their initial work to prepare the app for review? Or do I not need to have a working app to pass review?

Alexandre

You can test this with test user from your dashboard.

"A test user is a special Facebook account, invisible to real accounts, which can be created within an app for the purpose of manual or automated testing of that app's Facebook integration."

https://developers.facebook.com/docs/apps/test-users

You must login as a test user and request a friendship with another of your test user. Add the app to the test user. Connect with the second test user. Accept the friendship and add the app as well. Then you can test your app with this same account and see the list of friends using your app

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to get list of Facebook friends for testing an app, given the new Graph API limitations?

From Dev

How to get list of friends in Facebook Graph API ver 2.5?

From Dev

Get list of friends above the messenger in Facebook with Graph Api

From Dev

How to invite friends to facebook app via the Graph API

From Dev

How to invite friends to facebook app via the Graph API

From Dev

Facebook: How to get friends' check ins with Graph Api?

From Dev

How to get list of all my facebook friends using facebook api?

From Dev

Get facebook friends posts using graph API

From Dev

Facebook graph api friends of friends

From Dev

Facebook javascript sdk how get friends with new version api

From Dev

How can I get a list of friends in Facebook app?

From Dev

How to get the list of Facebook friends who have not installed the app?

From Dev

How can I get a list of friends in Facebook app?

From Dev

How to get a facebook users friends and profile picture of friends using graph api v2.0?

From Dev

How to get a facebook users friends and profile picture of friends using graph api v2.0?

From Dev

How to get friends list using graph api in android?

From Dev

Facebook iOS SDK - get friends list in Graph API v2.4

From Dev

Facebook Graph API - Issues with friends that have installed the app

From Dev

Unable to get the current user's friends that use the app facebook graph

From Dev

How to get Facebook Friends list in android application

From Dev

How to get a list of my Facebook friends?

From Dev

How to get Facebook Friends list in android application

From Dev

Facebook Graph API for friends list returns nil on iOS

From Dev

Facebook graph api search friends

From Dev

Facebook graph API V2.0 - how to get group context? (memebers who are my friends)

From Dev

How can I get the facebook friends_count of a user profile via graph API 2.2?

From Dev

how to get all friends in facebook using graph api v2.0 (ios)?

From Dev

Get ALL User Friends Using Facebook Graph API - Android

From Dev

Get only the total_count of friends - facebook-graph-api

Related Related

  1. 1

    How to get list of Facebook friends for testing an app, given the new Graph API limitations?

  2. 2

    How to get list of friends in Facebook Graph API ver 2.5?

  3. 3

    Get list of friends above the messenger in Facebook with Graph Api

  4. 4

    How to invite friends to facebook app via the Graph API

  5. 5

    How to invite friends to facebook app via the Graph API

  6. 6

    Facebook: How to get friends' check ins with Graph Api?

  7. 7

    How to get list of all my facebook friends using facebook api?

  8. 8

    Get facebook friends posts using graph API

  9. 9

    Facebook graph api friends of friends

  10. 10

    Facebook javascript sdk how get friends with new version api

  11. 11

    How can I get a list of friends in Facebook app?

  12. 12

    How to get the list of Facebook friends who have not installed the app?

  13. 13

    How can I get a list of friends in Facebook app?

  14. 14

    How to get a facebook users friends and profile picture of friends using graph api v2.0?

  15. 15

    How to get a facebook users friends and profile picture of friends using graph api v2.0?

  16. 16

    How to get friends list using graph api in android?

  17. 17

    Facebook iOS SDK - get friends list in Graph API v2.4

  18. 18

    Facebook Graph API - Issues with friends that have installed the app

  19. 19

    Unable to get the current user's friends that use the app facebook graph

  20. 20

    How to get Facebook Friends list in android application

  21. 21

    How to get a list of my Facebook friends?

  22. 22

    How to get Facebook Friends list in android application

  23. 23

    Facebook Graph API for friends list returns nil on iOS

  24. 24

    Facebook graph api search friends

  25. 25

    Facebook graph API V2.0 - how to get group context? (memebers who are my friends)

  26. 26

    How can I get the facebook friends_count of a user profile via graph API 2.2?

  27. 27

    how to get all friends in facebook using graph api v2.0 (ios)?

  28. 28

    Get ALL User Friends Using Facebook Graph API - Android

  29. 29

    Get only the total_count of friends - facebook-graph-api

HotTag

Archive