Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/26.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 调用FBSDKGameRequestContent:在Facebook中接收邀请但不接收通知_Ios_Objective C_Facebook_Facebook Graph Api - Fatal编程技术网

Ios 调用FBSDKGameRequestContent:在Facebook中接收邀请但不接收通知

Ios 调用FBSDKGameRequestContent:在Facebook中接收邀请但不接收通知,ios,objective-c,facebook,facebook-graph-api,Ios,Objective C,Facebook,Facebook Graph Api,我发送的游戏请求内容如下: FBSDKGameRequestContent *gameRequestContent = [[FBSDKGameRequestContent alloc] init]; gameRequestContent.message = @"My message"; gameRequestContent.title = @"My title"; gameRequestContent.recipients = @[idFacebook]; gameRequestContent.

我发送的游戏请求内容如下:

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];
收件人可以通过右上角的facebook图标查看邀请,但不会收到通知。为什么呢


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

在任何人都可以在iPhone上观看通知之前,你需要公开你的应用程序。

当通知仅在手机上显示时,是因为你的应用程序只是为手机设置的,而不是作为canvas应用程序。()我建议再次检查你的应用程序设置。你能访问你的画布链接吗?