2

I'm having problems getting friend invites working. They seem to be being sent OK (I don't get any errors from the iOS delegates) but the invites never appear on the receivers FB account. I'm using iOS SDK and logging in with test users. The code I'm using to create the invite dialog is:

NSMutableDictionary* dict = [NSMutableDictionary dictionary];
[dict setValue:@"Accept my invite" forKey:@"message"];
[_facebook dialog:@"apprequests" andParams:dict andDelegate:self];

This brings up the dialog where I can select friends to invite. When I hit Send the dialog vanishes and no errors are returned. Problem is that the invites are never received by the people I send them to.

I have set my canvas url, so according to other posts on SO everything should be working fine... but they are not.

Thanks for any suggestions.

4

2 回答 2

1

解决方案:(发送邀请,获取 ID 作为响应,但在 facebook 上没有通知警报或请求......)。

请首先从您的 Facebook 删除所有请求。然后发送邀请。(如果得到ID作为回应),那么它将显示100%。

这是 facebook 的一个问题,如果达到最大通知/请求,它不会在顶部显示最新请求。(它隐藏新的通知/请求)。

于 2012-04-05T14:51:46.513 回答
1

实际上,这在Requests 文档中进行了解释:

用户对用户请求仅适用于 Canvas 应用程序,而不是网站,因为接受请求会将用户定向到发送请求的应用程序的 Canvas 页面 URL。

对应用程序到用户的请求也有同样的说明。

这可能不仅是因为 Canvas URL,还有应用程序类型(我猜它不应该是原生的显示请求)

事实上,请求已发送,但用户无法看到它们。您可以访问应用程序用户的请求(通过 Graph API)并在您的应用程序中显示它们。

于 2012-02-14T18:02:56.390 回答