ios - 如何为 native iOS 应用程序创建测试用户?

标签 ios facebook facebook-test-users

我正在尝试测试我的 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/

相关文章:

ios - 在沙盒模式下使用测试用户登录失败(iOS SDK)

facebook-opengraph - 当使用 Open Grahp 测试用户作为配置文件时,Facebook Open Graph 关注操作会引发错误

iOS - 如何更新 CoreDataModel 实体?

iOS 下载 sqlite 数据库并替换现有数据库

html - 如何将 facebook 的 likebox 与标题标签保持在同一行?

ios - Swift 获取 Facebook AccessToken

facebook - 是否可以在测试应用之间共享 Facebook 测试用户?

ios - 如何从 iOS 的另一个 nsarray 中不存在的核心数据中删除对象?

ios - Xcode 6.3.2 - 无法通过 MapKit 获取位置

javascript - 将操作的属性添加到开放图表中故事的附件