【问题标题】:Send Message or App Request to facebook friend using Social Framework in iOS使用 iOS 中的社交框架向 Facebook 朋友发送消息或应用请求
【发布时间】:2013-12-07 08:02:58
【问题描述】:

实际上,以前我使用 FBGraph 向 facebook 朋友发送消息。 但现在它不起作用。 它给出了类似的错误

{error={
    code = 200;
    message = "(#200) Feed story publishing to other users is disabled for this application";
    type = OAuthException;
}}

我想使用 IOS 6 中可用的社交框架。所以我想用它来发送消息或应用程序请求。任何建议我该如何实施。

我使用 apprequests 发送消息,它给出以下错误

{"error":{"message":"(#200) All users in param ids must have accepted TOS","type":"OAuthException","code":200}}

我使用帖子发送消息,它给出以下错误

{"error":{"message":"Unsupported post request.","type":"GraphMethodException","code":100}}

【问题讨论】:

    标签: ios objective-c social-framework fb-graph


    【解决方案1】:

    也许是权限?

    为您的应用请求适当的权限以获取访问权限。

    NSArray *askForPermission = [NSArray arrayWithObjects: ... permissions ...., nil];
    [[FBSession activeSession] requestNewPublishPermissions:askForPermission defaultAudience:FBSessionDefaultAudienceOnlyMe completionHandler:^(FBSession *session, NSError *error) {
           if (error)
           {
              // If error occured do something
              failureHandler();
           }
           else
             completionHandler();
     }];
    

    【讨论】:

      猜你喜欢
      • 2014-04-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-06-28
      • 1970-01-01
      • 1970-01-01
      • 2012-06-20
      • 2013-05-25
      相关资源
      最近更新 更多