FBSDKLog:无法使用Facebook应用程序或Safari进行授权,fb ****未注册为URL方案 [英] FBSDKLog: Cannot use the Facebook app or Safari to authorize, fb**** is not registered as a URL Scheme

查看:425
本文介绍了FBSDKLog:无法使用Facebook应用程序或Safari进行授权,fb ****未注册为URL方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望 Facebook应用程序原生对话框登录 https://developers.facebook.com/docs/technical-guides/iossdk/login/#fbnative )。

在控制台中,单击FBLoginView时收到以下消息:

In the console, I get the following message when clicking on the FBLoginView:

FBSDKLog: Cannot use the Facebook app or Safari to authorize, fb**** is not registered as a URL Scheme

然而我做了完全如下:未能打开活动将Facebook SDK更新为3.5后的会话

Yet I did exactly as here: Failing to open active session after updating Facebook SDK to 3.5

推荐答案

myapp-Info.plist中,我将 URL Schemes 重命名为 CFBundleURLSchemes

之前:

<key>CFBundleURLTypes</key>
<array>
    <dict>
        <key>URL Schemes</key>
        <array>
            <string>fb***</string>
        </array>
    </dict>
</array>

之后:

<key>CFBundleURLTypes</key>
<array>
    <dict>
        <key>CFBundleURLSchemes</key>
        <array>
            <string>fb***</string>
        </array>
    </dict>
</array>

差异在XCode中不可见,因为 CFBundleURLSchemes 别名为 URL Schemes

The difference is not visible in XCode because CFBundleURLSchemes is aliased with URL Schemes.

因此,您必须编辑 myapp -Info.plist 手动。

As a consequence, you have to edit myapp-Info.plist manually.

这篇关于FBSDKLog:无法使用Facebook应用程序或Safari进行授权,fb ****未注册为URL方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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