菜鸟教程小白 发表于 2022-12-12 13:14:07

ios - Facebook SDK 3.6 打开图错误消息


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

<pre><code>if (!call) {
      // Fallback to customized share UI
      MyShareViewController *viewController = [ initWithItem:object
                                                                                 objectType:@&#34;objecttype&#34;
                                                                                 actionType:@&#34;namespace:action&#34;];
      ;

    }
</code></pre>

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

<p> <img src="/image/ynjXL.png" alt="enter image description here"/> </p>

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

<pre><code>Error: Error Domain=com.facebook.Facebook.platform Code=102 &#34;The operation couldn’t be completed. (com.facebook.Facebook.platform error 102.)&#34; UserInfo=xxxx {error_code=102, action_id=xxx-xxx-xxx-xxx-xxx, error_message=Could not generate preview text, app_id=xxxxx}
</code></pre>

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

<p><strong>编辑</strong>注意灰色的“发布”按钮。</p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>检查以下</p>

<ol>
<li><strong>FacebookDisplayName</strong> 在 plist 的 URL Scheme 中设置正确且正确</li>
<li><strong>fbxxxxxxxxxxx</strong> 已添加到您的 plist 文件中</li>
<li><strong>FacebookAppID</strong> 在 plist 文件中设置正确</li>
<li>在<strong>状态和评论</strong>部分确保您有<strong>“您想让这个应用程序及其所有实时功能向公众开放吗?”</strong>设为"is"(默认为否)</li>
</ol></p>
                                   
                                                <p style="font-size: 20px;">关于ios - Facebook SDK 3.6 打开图错误消息,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/17971713/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/17971713/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - Facebook SDK 3.6 打开图错误消息