Facebook Account Kit SDK提供了无效的OAuth 2.0错误

Sum*_*eed 4 sdk oauth-2.0 swift

我已将Account kit sdk集成到我的项目中。

我在Facebook开发仪表板上创建了该应用程序,并在其上启用了Account Kit。获得了app-id客户端访问令牌

我将其添加到info.plist文件中。我收到此错误:

[AccountKit][Error]: Invalid OAuth 2.0 Access Token
2016-05-31 02:41:32.191 Chat[2919:563260] [AccountKit][Error]: 

Persisting App Events due to error: 

Error Domain=com.facebook.accountkit:Error Code=200 "(null)" 

UserInfo={com.facebook.accountkit:ErrorDeveloperMessageKey=Invalid OAuth access token., NSUnderlyingError=0x147596a30 

{Error Domain=com.facebook.accountkit:ServerError Code=190 "(null)" UserInfo={com.facebook.accountkit:ErrorDeveloperMessageKey=Invalid OAuth access token.}}}
Run Code Online (Sandbox Code Playgroud)

请帮忙。谢谢

小智 5

确保在info.plist中具有正确的设置。我有一个类似的问题,就我而言,它缺少关键的FacebookAppID

<key>FacebookAppID</key>
<string>{your-app-id}</string> 
<key>AccountKitClientToken</key>
<string>{your-account-kit-client-token}</string>
<key>CFBundleURLTypes</key>
<array>
     <dict>
         <key>CFBundleURLSchemes</key>
         <array>
             <string>ak{your-app-id}</string>
         </array>
     </dict>
</array>
Run Code Online (Sandbox Code Playgroud)