如何通过Facebook iOS sdk向Facebook的朋友发送应用程序请求? [英] How to Send App request to facebook friends through facebook iOS sdk?

查看:284
本文介绍了如何通过Facebook iOS sdk向Facebook的朋友发送应用程序请求?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用facebook sdk作为我的iOS Facebook应用程序。我想向多个用户发送应用请求。我正在为此目的使用以下方法。

  NSArray * actionLinks = [NSArray arrayWithObjects:[NSDictionary dictionaryWithObjectsAndKeys:
@ 开始,@name,@http://www.facebook.com/apps/application.php?id=135775646522275/,@link,nil],nil];
NSString * actionLinksStr = [jsonWriter stringWithObject:actionLinks];

NSMutableDictionary * params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
@查看我正在使用的这个真棒应用程序,@message,
@检查出来,@ 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只有app_request计数在朋友墙上才能增加,他不会收到应用请求的任何通知,也不会看到该应用的请求。
有什么问题,有什么其他的方法可以从iOS的Facebook应用发送应用请求吗?

解决方案

这是修复程序:


  1. 转到 http://developers.facebook.com

  2. 修改您的应用设置。

  3. 查看Facebook上的应用和本机iOS应用程序。

  4. 输入应用程序的网站网址(如果有的话)作为画布网址(安全画布网址可以相同)。 / li>
  5. 输入 iOS软件包ID iPhone / iPad App Store ID (您可以在iTunes连接的应用页面上找到此信息)。

画布网址用于重定向您的朋友,如果他从网站
iOS软件包ID iPhone / iPad App Store ID 用于将您的朋友重定向到App Store,如果他审查了Native iO的请求S应用程序。


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 ?

解决方案

Here is the fix:

  1. Go to http://developers.facebook.com.
  2. Edit your app settings.
  3. Check 'App on Facebook' and 'Native iOS App'.
  4. Enter web-site URL of your app (if you have) as the Canvas URL (Secure Canvas URL can be the same).
  5. Enter iOS Bundle ID and iPhone/iPad App Store ID (You can find this info on your App page at iTunes connect).

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.

这篇关于如何通过Facebook iOS sdk向Facebook的朋友发送应用程序请求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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