Facebook SDK 3.6打开图形错误消息 [英] Facebook SDK 3.6 Open Graph Error Message

查看:193
本文介绍了Facebook SDK 3.6打开图形错误消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图使用新的分享对话框,当没有安装Facebook应用程序并且我与我自己的viewcontroller共享时它工作正常:

Im trying to use the new Share Dialog and it works fine when the facebook app is not installed and im sharing with my own viewcontroller:

if (!call) {
        // Fallback to customized share UI
        MyShareViewController *viewController = [[MyShareViewController alloc] initWithItem:object
                                                                                 objectType:@"objecttype"
                                                                                 actionType:@"namespace:action"];
        [_delegate showFallbackShareDialog:viewController];

    }

所以只有安装了facebook应用程序才会调用此代码。当它安装时,设备打开Facebook应用程序,在这里用户可以键入一条消息,该消息将包含在打开的图形操作中

So this code only gets called when the facebook app isnt installed. When it is installed the device opens the facebook app and here the user can type a message which will be included in the open graph action

但几秒后我的设备切换回我的应用程序此错误显示:

But after a few second my devices switches back to my app and this error shows up:

Error: Error Domain=com.facebook.Facebook.platform Code=102 "The operation couldn’t be completed. (com.facebook.Facebook.platform error 102.)" UserInfo=xxxx {error_code=102, action_id=xxx-xxx-xxx-xxx-xxx, error_message=Could not generate preview text, app_id=xxxxx}

我一直在网上搜索解释但是找不到什么错误。有人知道这个错误意味着什么吗?

I've been searching the web for an explanation but just can't find whats wrong. Does somebody know what this error means?

编辑注意灰色的发布按钮。

EDIT notice the greyed out "Post" button.

推荐答案

检查以下内容


  1. FacebookDisplayName 设置正确并在plist的URL中更正方案

  2. fbxxxxxxxxxxx 已添加到您的plist文件中

  3. FacebookAppID 在plist文件中正确设置

  4. 状态&审核部分确保您是否要将此应用及其所有实时功能提供给普通大众?制作为是(默认情况下为否)

  1. FacebookDisplayName is set properly and correct in plist's URL Scheme
  2. fbxxxxxxxxxxx is added in your plist file
  3. FacebookAppID is set correctly in plist file
  4. in Status & Review section Make sure you have "Do you want to make this app and all its live features available to the general public?" make as YES (By default it's No)

这篇关于Facebook SDK 3.6打开图形错误消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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