Recentemente ho integrato il plugin phonegap-facebook (https://github.com/phonegap/phonegap-facebook-plugin) in iOS e Android (stessa app).Facebook Login con PhoneGap/Cordova App
Voglio fare qualcosa che ritengo sia semplice: by-passare la chiamata a Facebook nativo per login/autenticazione e usare sempre la finestra di dialogo web. Come si fa a realizzare questo?
Il mio codice di accesso attualmente appare così:
codiceInit:
//facebook initialization
FB.init({
appId: 'xxxxxxxxxxxx', //'<%#= FB_APP_ID %>',//'',
nativeInterface: CDV.FB,
useCachedDialogs: false
});
e la chiamata di accesso è:
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" });
Grazie per il vostro aiuto !!
Voglio solo realizzare lo stesso! qualsiasi aiuto? –
http://stackoverflow.com/questions/16576977/is-there-any-facebook-plugin-for-phonegap-2-7-0/16579592#16579592 –