新的iOS应用程序挣扎与Facebook图表api v2.0 [英] New iOS App struggling with Facebook Graph api v2.0

查看:100
本文介绍了新的iOS应用程序挣扎与Facebook图表api v2.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很开始应用开发,而且我一直在构建一个社交iOS应用程序,它需要发送Facebook邀请来加入应用程序。昨天Facebook Graph API 2.0的发布似乎对如何邀请尚未成为游戏部分的玩家有更严格的要求。我试图激活我/ invitable_friends,但是我仍然收到相同的消息:

  {
error {
message:(#15)此方法仅适用于游戏。,
type:OAuthException,
code:15
}

他们的文档提及需要是Canvas应用程序,所以我添加了占位符URL作为Canvas页面。不确定是否足够。



诚然,我的应用仍然处于沙箱模式,所以这可能是为什么,尽管我在使用Graph API应用程序测试时收到相同的消息。是因为在沙箱模式,还是有其他我需要做的?所有应用程序现在都必须得到Facebook的批准才能整合其邀请?

解决方案

要使用invitable_friends边缘,您的应用程序需要是:




  • 在您的应用设置中被归类为游戏

  • 有一个Canvas存在 - 这意味着在您的应用程序的设置中启用Canvas平台。



您上面看到的错误是因为您的应用程序未被归类为游戏,而不是因为您处于开发模式。


I'm new to app development, and I've been building a social iOS app that requires sending Facebook invites to join the app. Yesterday's release of Facebook Graph API 2.0 seems to have much stricter requirements on how to invite those not already part of the game. I'm trying to activate me/invitable_friends but I keep getting the same message:

{
 "error": {
"message": "(#15) This method is only accessible to Games.", 
"type": "OAuthException", 
"code": 15
 }

Their documentation mentions needing to be a Canvas app, so I added placeholder URL's as Canvas pages. Not sure if that's sufficient.

Admittedly my app is still in sandbox mode so that could be why, though I get the same message when testing with the Graph API application itself. Is it due to being in sandbox mode, or is there something else I need to do? Do all apps now have to be approved by Facebook to integrate their invites?

解决方案

To use the invitable_friends edge, your app needs to be:

  • classified as a 'Game' within your app's settings
  • have a Canvas presence - which means enabling the Canvas platform within your app's settings.

The error you're seeing above is because your app is not categorized as a game, not because you're in Development Mode.

这篇关于新的iOS应用程序挣扎与Facebook图表api v2.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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