Saturday, February 18, 2017

Using Invitable friends with phonegap facebook plugin

Leave a Comment

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);     }); }); 

1 Answers

Answers 1

I had used the below code to get the user's invitable friends.See if this helps : facebookConnectPlugin.api('/me/friends?fields=id,name,picture',["public_profile","user_friends"],

If You Enjoyed This, Take 5 Seconds To Share It

0 comments:

Post a Comment