简体   繁体   中英

facebook integration with objective c

My App was work fine, before few days it become crash and give this error:

Terminating app due to uncaught exception 'InvalidOperationException', reason: 'fbauth2 is missing from your Info.plist under LSApplicationQueriesSchemes and is required for iOS 9.0'

When I check the plist file I found that the fbauth2 is there as it should be:

<key>LSApplicationQueriesSchemes</key>
<array>
    <string>fbapi</string>
    <string>fb-messenger-api</string>
    <string>fbauth2</string>
    <string>fbshareextension</string>
    <string>twitter</string>
    <string>twitterauth</string>
</array>

any one have any idea about that?

Regards.

You only need to add into your Info.plist. You have to add 
<string>fb-messenger-api</string> for iOS 9.0

<key>LSApplicationQueriesSchemes</key>
<array>
  <string>fbapi</string>
  <string>fb-messenger-api</string>
  <string>fbauth2</string>
  <string>fbshareextension</string>
</array>

You can try this -

In your info.plist , add a row with the key LSApplicationQueriesSchemes . Make sure it is of array type. For it's only element, add the string fbauth2 .

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM