OGeek|极客世界-中国程序员成长平台

标题: ios - Facebook SDK 3.6 打开图错误消息 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-12 13:14
标题: ios - Facebook SDK 3.6 打开图错误消息

我正在尝试使用新的共享对话框,当未安装 facebook 应用程序并与我自己的 View Controller 共享时它可以正常工作:

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

    }

因此,只有在未安装 facebook 应用程序时才会调用此代码。安装后,设备会打开 facebook 应用程序,用户可以在此处键入一条消息,该消息将包含在打开图形操作中

enter image description here

但几秒钟后我的设备切换回我的应用程序并出现此错误:

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}

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

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



Best Answer-推荐答案


检查以下

  1. FacebookDisplayName 在 plist 的 URL Scheme 中设置正确且正确
  2. fbxxxxxxxxxxx 已添加到您的 plist 文件中
  3. FacebookAppID 在 plist 文件中设置正确
  4. 状态和评论部分确保您有“您想让这个应用程序及其所有实时功能向公众开放吗?”设为"is"(默认为否)

关于ios - Facebook SDK 3.6 打开图错误消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17971713/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4