Facebook SDK: app not registered as a URL Scheme

后端 未结 10 1094
無奈伤痛
無奈伤痛 2020-11-30 22:41

I am using the Facebook SDK found here, and am trying the sample that is provided (in the folder FacebookiOSSample).

If I simply replace th

相关标签:
10条回答
  • 2020-11-30 23:20

    Follow these three steps:

    1. Create a key called FacebookAppID with a string value, and add the app ID there.
    2. Create a key called FacebookDisplayName with a string value, and add the Display Name you configured in the App Dashboard.
    3. Create an array key called URL types with a single array sub-item called URL Schemes. Give this a single item with your app ID prefixed with fb. This is used to ensure the application will receive the callback URL of the web-based OAuth flow.

    The finished .plist should look something like this:

    enter image description here

    Source Link:

    0 讨论(0)
  • 2020-11-30 23:29

    I was also facing same issue. Then did this:

    <dict> <key>CFBundleURLSchemes</key> <array> <string>fb154510174913175</string> <string>fbauth2</string> // add this line to remove the error </array> </dict>

    and issue is fixed now.

    0 讨论(0)
  • 2020-11-30 23:31

    In my case i already had LSApplicationQueriesSchemes and CFBundleURLTypes keys in my info.plist, When I again added them separately in info.plist. it didn't read the second one and doesn't recognize. So add values into the previous LSApplicationQueriesSchemes and CFBundleURLTypes keys solved my issue.

    0 讨论(0)
  • 2020-11-30 23:34

    Today i solved this bug by just removing space from FacebookDisplayName.

    make sure you don't have any space in FacebookDisplayName

    0 讨论(0)
提交回复
热议问题