ios - 调用 FBSDKGameRequestContent : receiving the invite but not the notification in Facebook

标签 ios objective-c facebook facebook-graph-api

我正在发送一个游戏请求内容,内容如下:

FBSDKGameRequestContent *gameRequestContent = [[FBSDKGameRequestContent alloc] init];
gameRequestContent.message = @"My message";
gameRequestContent.title = @"My title";
gameRequestContent.recipients = @[idFacebook];
gameRequestContent.actionType = FBSDKGameRequestActionTypeNone;
FBSDKGameRequestDialog* dialog = [[FBSDKGameRequestDialog alloc] init];
dialog.content = gameRequestContent;
dialog.delegate = self;
[dialog show];

并且收件人可以通过https://www.facebook.com/games/activity看到邀请但没有收到右上角 facebook 图标中的通知。这是为什么?

在 Facebook 应用程序中,我创建了 iOS 应用程序和 Canvas 游戏。

最佳答案

您需要先公开您的应用,然后其他人才能在他们的 iPhone 上看到通知。

关于ios - 调用 FBSDKGameRequestContent : receiving the invite but not the notification in Facebook,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30753076/

相关文章:

objective-c - NSColor 及其色调分量

ruby-on-rails - RoR Facebook Canvas App 用户注册和登录

html - 像google/facebook中的设备身份验证

ios - 在这个项目中,为什么我无法访问我从 nib 加载的 View 属性?

ios - Xcode 8 - 自动布局与灵活的节标题(和答案)

ios - InAppSettingsKit 动态单元格? (iPhone 和 iPad)

objective-c - 为什么我不能使用外部 header ?

objective-c - 未知的Objective-C错误“架构x86_64的 undefined symbol ”,一切似乎正常

ruby-on-rails - 使用考拉,我如何在发布到用户的流时附加图像?

ios - 无法从 IPv6 连接到 IPv4 错误域=NSURLErrorDomain 代码=-1003“找不到具有指定主机名的服务器