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?
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.
Comments