In my app, i am trying to show profile pic and name of friends of the person logged in using the app. But, error occurs
FB._callbacks.__gcb1({"error":{"message":"Unknown path components: \/friends.getAppUsers","type":"OAuthException","code":2500}});
My code is:
function loadFriends() {
//get array of friends
FB.api('/me/friends.getAppUsers', function (response) {
console.log(response);
var divContainer = $('.facebook-friends');
var html = "";
for (i = 0; i < response.data.length; i = i + 4) {
// code to bind profile pic of friends using the app and their names
}
});
}
How can i solve this? please help.
This code works when i change "friends.getAppUsers" to "friends". I get all friends with their profile pic and name.
Thanks in advance.