Facebook Graph Api - /me/friends returns empty with Test Users

1k Views Asked by At

I am creating a quick test application with the facebook javascript sdk. I want to get the list of friends that also use this app. Since the app is in development mode, I figured I needed to do this with test users. I have created two test users (and the default test user), gave them the user_friends permission, and authorized the app for their accounts. UPDATE: All test users are friends with each other.

When logged into any one of the test users described above (login tested with call to get /me), I still get back nothing in response.

Here is my get friends function with the API call:

var getMyFriends = function(){
  FB.api(
      "/me/friends",
      function (response) {
        if (response && !response.error) {
          console.log(response);
        }
      }
  );
};

Here is my response object in the console:

Object {data: Array[0]}
data:Array[0] length:0

I got some pointers from this earlier post: Facebook Graph Api v2.0+ - /me/friends returns empty, or only friends who also use my app

Any thoughts on what I might be missing?

0

There are 0 best solutions below