[英]How to get invitable_friends list from facebook using graph API
I want to get invitable_friends from facebook.While using the this code:- 我想从facebook获取invitable_friends。同时使用以下代码:-
new GraphRequest(
AccessToken.getCurrentAccessToken(),
"/me/invitable_friends",null,
HttpMethod.GET,
new GraphRequest.Callback()
{
@Override
public void onCompleted(GraphResponse response)
{
/* Handle the result */
System.out.println("=========================");
System.out.println("==>> :" + response);
System.out.println("=========================");
}
}).executeAsync();
I am getting this error 我收到此错误
Response: responseCode: 400, graphObject: null, error: {HttpStatus: 400, errorCode: 100, errorType: OAuthException, errorMessage: (#100) No permission to access invitable_friends
Can any one please tell me how to set invitable_friends permission and how can I get invitable_friends list. 谁能告诉我如何设置invitable_friends权限以及如何获得invitable_friends列表。
Thanks in Advance..!! 提前致谢..!!
This feature is only available to games with a presence on Facebook Desktop 此功能仅适用于在Facebook桌面上存在的游戏
Source: https://developers.facebook.com/docs/games/services/gamerequests#invitablefriends 来源: https : //developers.facebook.com/docs/games/services/gamerequests#invitablefriends
You can only use this for games with a Canvas implemenation. 您只能将其用于具有Canvas实现的游戏。
How to invite friends to a non-game App is explained in the FAQ: https://developers.facebook.com/docs/apps/faq 常见问题解答中说明了如何邀请朋友加入非游戏应用程序: https : //developers.facebook.com/docs/apps/faq
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.