I am aware that invitable friends (https://developers.facebook.com/docs/games/invitable-friends/v2.0) requires canvas and category game. And I have also requested for user_friends permission on initial approval of the user. I have done all that and when I use /me/invitablefriends in graph api it returns the desired results. But when I try to do the same with facebook plugin in phonegap I get the following error. "The operation couldn't be completed. (com.facebook.sdk error 5.)
$("#invitefriends").click(function() {
facebookConnectPlugin.api("me/invitable_friends", ["user_friends"], function (response) {
alert(JSON.stringify(response));
}, function (error) {
alert("error "+error);
});
});
facebookConnectPlugin.api("me/invitable_friends", function (
, ["user_friends"]
part