Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (android)
Viewing all articles
Browse latest Browse all 7655

Facebook.authorize works on iPhone, nothing on Android

$
0
0

I'm trying to do do a Titanium.Facebook.authorize(), and it works on iPhone, but I get no reaction on Android.

The login event never get fired. :-/ Nothing gets printed to the log after 'Time to log in'.

Am I missing something?

Titanium.Facebook.appid = MY_APP_ID;
Titanium.Facebook.permissions = ['publish_stream'];
Titanium.Facebook.forceDialogAuth = true; // <--- Tried both
 
if (Titanium.Facebook.loggedIn === true) {
    Ti.API.info('Already logged in!');
} else {
    Titanium.Facebook.addEventListener('login',function(e){
        if (e.success) {
            Ti.API.info('Success!');
        } else if (e.error) {
            Ti.API.info('error: ' + e.error);
        } else {
            Ti.API.info('Unknown error');
        }
    });
 
    Ti.API.info('Time to log in');
    Titanium.Facebook.authorize();
}

Viewing all articles
Browse latest Browse all 7655

Trending Articles



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