I recently discovered an issue on Android when logging into Facebook to use the user-data like name & id. Therefor the login callback returns a "data" object, which needs to be parsed manually on Android, but in iOS you don't need to do anything extra.
- Create a simple project.
- Update app.js with:
- Add facebook module in tiapp.xml
- Run on android device
The difference in the callbacks are here.
The bug was also discussed 2 years ago in the Q&A: https://developer.appcelerator.com/question/135341/titaniumfacebook-login-callback---cant-access-user-data-on-android-device
The bug can be "fixed" by using a conditional statement like:
But a consistent behaviour is clearly the better way.