Facebook not returning contacts

I'm working on extending the Wordpress plugin to limit blog signups to people who are already connected to me on Facebook. However when I hit /users/[token]/contacts.json I get a positive response code but I don't get any actual user information.

"contacts":{
"status":{
"flag":"success",
"code":200,
"message":"The contacts have been retrieved from the social network identity and the cache has been refreshed"
},
"read_from_cache":false,
"cache_date_last_update":"Mon, 16 Feb 2015 03:36:22 +0100",
"count":0
}

The count is 0 and no entries are passed back. I confirmed that my app has permission to see my friends list, not sure what I'm doing wrong.

Answers

  • Claude_SchlesserClaude_SchlesserAdministratorOneAll Team
    Hi Kelly, as of 4/30/2014, apps can unfortunately only get the list of friends also using the app.

    You can see the update in their changelog here:
    https://developers.facebook.com/docs/apps/changelog

    April 30th, 2014 - API Version v2.0
    Friend list now only returns friends who also use your app: The list of friends returned via the /me/friends endpoint is now limited to the list of friends that have authorized your app

Welcome!

Please sign in to your OneAll account to ask a new question or to contribute to the discussions.

Please click on the link below to connect to the forum with your OneAll account.