我正在尝试测试我的 native iOS 应用程序,但我在测试用户方面遇到了很多问题。基本上,基于正常图形的创建测试用户的方法似乎不适用于 native 应用程序。当我尝试时,我从服务器得到以下响应:
{
"error": {
"message": "(#15) This method is not supported for native apps",
"type": "OAuthException",
"code": 15
}
}
这似乎得到了 SO 上的各种帖子和旧 FB 论坛上的一个页面的支持:
http://forum.developers.facebook.net/viewtopic.php?id=93086
人们说,为 native 应用程序创建测试用户的唯一方法是在 FB 上创建适当的假帐户,这违反了 FB 的条款和条件。这真的是我唯一的选择吗?我无法相信 FB 开发人员无法支持 native 应用程序的测试帐户。
有人知道创建原生应用测试用户的合法方法吗?
最佳答案
在 the developer documentation for test users 的顶部,还提到了用于维护测试用户的 GUI。
In addition to the Graph API functionality described below for managing test users programmatically, there is also a simple GUI in the Developer App, available on your app's Roles page as shown in the screenshots below. It exposes all of the API functions described in this document.
出于某种我不明白的原因,如果您的应用的“应用类型”(在“设置”->“高级”下)为 native /桌面,则图谱 API 调用不可用。但您可以改用 GUI。
关于ios - 如何为 native iOS 应用程序创建测试用户?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9293661/