如何通过facebook iOS sdk向facebook好友发送App请求?
我正在为我的 iOS facebook 应用程序使用 facebook sdk。我想向多个用户发送应用程序请求。为此,我正在使用以下方法。
NSArray* actionLinks = [NSArray arrayWithObjects:[NSDictionary dictionaryWithObjectsAndKeys:
@"Get Started",@"name",@"http://www.facebook.com/apps/application.php?id=135775646522275/",@"link", nil], nil];
NSString *actionLinksStr = [jsonWriter stringWithObject:actionLinks];
NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
@"Check out this awesome app I am using.",@"message",
@"Check this out", @"notification_text",
@"http://www.facebook.com/apps/application.php?id=135775646522275/",@"link",
appImage,@"picture",
actionLinksStr, @"actions",
nil];
[facebook dialog:@"apprequests"
andParams:params
andDelegate:self];
问题是,我在调用此方法后,出现应用程序请求Web视图并且应用程序请求已成功提交。但只有好友墙上的app_request计数增加,他既没有收到任何应用请求的通知,也看不到该应用请求。 可能是什么问题,还有其他替代方法可以从 iOS facebook 应用程序发送应用程序请求吗?
I am using facebook sdk for my my iOS facebook application. I want to send app request to multiple users. I am using following method for that purpose.
NSArray* actionLinks = [NSArray arrayWithObjects:[NSDictionary dictionaryWithObjectsAndKeys:
@"Get Started",@"name",@"http://www.facebook.com/apps/application.php?id=135775646522275/",@"link", nil], nil];
NSString *actionLinksStr = [jsonWriter stringWithObject:actionLinks];
NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
@"Check out this awesome app I am using.",@"message",
@"Check this out", @"notification_text",
@"http://www.facebook.com/apps/application.php?id=135775646522275/",@"link",
appImage,@"picture",
actionLinksStr, @"actions",
nil];
[facebook dialog:@"apprequests"
andParams:params
andDelegate:self];
The problem is, I after calling this method, app request web view appears and app request is submitted successfully. But only app_request count on friends wall increases, Neither he gets any notification for app request, nor he can see the app request.
What can be the problem, is there any other alternative way to send app request from iOS facebook app ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
解决方法如下:
Canvas URL 用于在您的朋友查看来自网站的请求时重定向您的朋友
iOS Bundle ID 和 iPhone/iPad App Store ID 用于在您的朋友审核来自本机 iOS 应用程序的请求时将其重定向到 App Store。
Here is the fix:
Canvas URL is used to redirect your friend if he reviews the request from Web-site
iOS Bundle ID and iPhone/iPad App Store ID are used to redirect your friend to App Store if he reviews the request from Native iOS App.