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

Facebook auth fails with white screen?!

$
0
0

Hi,

I am trying to authenticate my users over Facebook. I already used this feature in previous versions, so my Facebook App is already live and pre configured. Now I want to add this feature again and I tried everything like in the past version. This is what I've done until now:

  1. Added on my tiapp.xml this property (with my app id): <property name="ti.facebook.appid">123456789</property>
  2. Added in my Info.plist all the other required information like URLSchemes etc.
  3. (Added the below code in my app.js)
    var fb = require('facebook');
    fb.appid = 123456789;
    fb.forceDialogAuth = true;
    fb.permissions = ['publish_action'];
     
    fb.addEventListener('login', function(e) {
        if (e.success) {
            Ti.App.fbAccessTokenFacebookSDK = fb.accessToken;
            Ti.API.info("Facebook access successfully authorized with AuthCode: " + Ti.App.fbAccessTokenFacebookSDK);
        } else if (e.error) {
            alert(e.error);
        }
    });
     
    if (!fb.loggedIn) {
        fb.authorize();
    }
    Unfortunately, the popup comes up but I just see a white screen (or nothing in there)?! http://i6.minus.com/jbhWiCbVYhrKpv.png

What am I doing wrong?

Thanks in advance, Alex


Viewing all articles
Browse latest Browse all 13

Trending Articles



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