Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Facebook integration on iOS 6 not working

$
0
0

I am developing an application for both iOS and Android that uses Facebook as a method of logging into an account. I am using the native login on authorize(), as explained here: http://stackoverflow.com/questions/20022284/titanium-facebook-module-doesnt-using-native-login

I have an app setup on Facebook, and this method works on both platforms, except when the user has bound their Facebook account under the Settings > Facebook menu in iOS 6+.

What happens is, whenever I call fb.authorize(), it won't do anything except firing a "login" event, with an object argument (ev) that returns neither success or an error message. It only returns code "-1". I've also checked if the "fb" object I instantiated in the start of the app had an accessToken or even loggedIn, but no such luck. Also making any request with graph path will return "com.facebook.sdk error 5".

If I remove the account from the iOS settings menu and go back into the app, the login starts working again (directly with the Facebook application if it's installed).

For now, I've made a workaround that whenever the event object is returned as described above, I turn fb.forceDialogAuth = true, but this is not an acceptable solution.

I've checked my appId, tiapp.xml, info.plist, my facebook app settings, created a new facebook app just to make sure, and even a new Titanium app, and nothing worked. Is there anyone having the same problem, and if so, is there a solution?


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>