Facebook APP:空的邀请好友列表 [英] Facebook APP: Empty invitable friends list

查看:54
本文介绍了Facebook APP:空的邀请好友列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为在安全画布中开发的应用程序使用Facebook Javascript API.我正在使用应用程序管理员帐户在facebook内进行测试(因此将授予所有权限).

I'm using Facebook Javascript API for an App I'm developing in a secure canvas. I'm testing from within facebook with an app Admin account (therefore all permissions are granted).

按照同步顺序,我是:

初始化API->登录->/me->/me/invitable_friends.

initializing the API -> logging in -> /me -> /me/invitable_friends.

前三个动作按预期工作.最后一个-/me/invitable_friends-返回一个空的数据数组.

The first 3 actions work as expected. The last one - /me/invitable_friends - returns an empty data array.

请让我知道您的想法.

推荐答案

使用Invitable Friends API时的一个常见错误不是首先验证您的应用是否具有必需的user_friends权限.必须在以下位置授予user_friends权限以便从Invitable Friends API接收结果.未经许可,Facebook的响应将为空列表."

"A common mistake when using the Invitable Friends API is not first verifying that your app has the required user_friends permission. It is necessary to have granted the user_friends permission in order to receive results from the Invitable Friends API. Without the permission, the response from Facebook will be an empty list."

https://developers.facebook.com/docs/games/invitable-friends/v2.2

这篇关于Facebook APP:空的邀请好友列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆