HaxeExtension / extension-facebook

OpenFL Facebook SDKs integration
Other
24 stars 16 forks source link

Terminating app due to uncaught exception when trying to login to FB on iOS #8

Open Netforza opened 7 years ago

Netforza commented 7 years ago

I get the following error: 'InvalidOperationException', reason: 'App ID not found. Add a string value with your app ID for the key FacebookAppID to the Info.plist or call [FBSDKSettings setAppID:].'

I use the dev version of facebook extension with flixel 3.3.12, openfl 3.5.3 and lime 2.8.2

I included the following in Project.xml:

    <setenv name="FACEBOOK_APP_ID" value="529497693913674" />
    <setenv name="FACEBOOK_DISPLAY_NAME" value="Genial Santa Claus 2" />
    <haxelib name="extension-facebook" />

Everything works fine on Android target. On iOS after a clean build there is no FacebookAppID key present in info.plist

UPDATE: When I add the FacebookAppID to info.plist manually in xcode. I get the following error when trying to login to Facebook.

*** Terminating app due to uncaught exception 'InvalidOperationException', reason: 'fb529497693913674 is not registered as a URL scheme. Please add it in your Info.plist'