[AC-499] Facebook no longer works - fbauth2 is missing from your info.plist
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Cannot Reproduce |
Resolution Date | 2015-11-23T07:11:46.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Josh Lewis |
Assignee | Sharif AbuDarda |
Created | 2015-11-12T00:12:37.000+0000 |
Updated | 2015-11-23T07:11:46.000+0000 |
Description
Facebook no longer works on iOS9. Trying to login, the following message appears:
~~~
fbauth2 is missing from your Info.plist under LSApplicationQueriesSchemes and is required for iOS 9
~~~
Adding the suggested fix keeps the app from crashing, loads Facebook for login and comes back to the app, but then does not go further and actually do anything.
Hello [~joshlewis], Looks like your Facebook authentication is missing from your tiapp.xml file, Which is [additional iOS setup steps](http://docs.appcelerator.com/platform/latest/#!/api/Modules.Facebook). Add the following keys: 1. FacebookAppID key with your Facebook App ID as the string value. 2. FacebookDisplayName key with your Facebook App name (the one from developer.facebook.com) as the string value. 3. CFBundleURLTypes key with a single-element array containing a dict as the value, where the dict contains: * CFBundleURLName key with the application app ID (same value as the id in the tiapp.xml file) as the string value. * CFBundleURLSchemes key with a single-element array containing the Facebook App ID prefixed with fb as a string value. For example:
This should work for you. I have tested it, And it's working. Hope this helps, Thanks.
Still doesn't work in the 5.x sdk. Also, apparently in 4.x now, the data from the fb 'login' event listener has to be json-parsed now. Calling e.data.email equals null, but calling var x = JSON.parse(e.data);alert(x.email); works...
Hi [~josh.lewis], We can successfully login Facebook with the following version. Login problem can happen because of your Facebook APPID is not created with the updated version or you didn't follow all the steps. Also, the plist file of your tiapp.xml is not well prepared. So I recommend you to create Fb_ID *developers.facebook.com* with updated version and follow all the steps and follow this guide also - http://docs.appcelerator.com/platform/latest/#!/api/Modules.Facebook *Testing Environment:* Operating System Name = Mac OS X Version = 10.11.1 Architecture = 64bit # CPUs = 4 Memory = 8589934592 Node.js Node.js Version = 4.2.2 npm Version = 3.4.1 Titanium CLI CLI Version = 5.0.5 Titanium SDK SDK Version = 5.1.0.GA, 5.0.2.GA Target Platform = iphone *Test Code:*
Thanks