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:
- Added on my tiapp.xml this property (with my app id): <property name="ti.facebook.appid">123456789</property>
- Added in my Info.plist all the other required information like URLSchemes etc.
- (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