I recently turned on the phonegap-facebook plugin ( https://github.com/phonegap/phonegap-facebook-plugin ) on iOS and Android (same app).
I want to do something that, in my opinion, will be simple: get around the call on your native facebook for login / authentication and always use the web dialog . How can this be done?
My login code currently looks like this:
Initialization Code:
//facebook initialization FB.init({ appId: 'xxxxxxxxxxxx', //'<%#= FB_APP_ID %>',//'', nativeInterface: CDV.FB, useCachedDialogs: false });
And a call to enter:
FB.login(function(response) { if (response.authResponse) { // connected me.signInFacebook({ token: response.authResponse.accessToken, email: response.authResponse.email, success: function (data) { // hide login view and show tabview form.destroy(); // continue whatever action was previously happening me.continueAction(tabIndexBack, callback); }, failure: function (response) { // show errors Ext.Viewport.down('tabscontainerview').setActiveItem(3); } }); } else { //go back Ext.Viewport.down('tabscontainerview').setActiveItem(3); alert('fb login error'); } },{ scope: "email" });
Thanks for the help!
Austin
source share