I came across this openFB plugin to make facebook requests without the sdk, that can be used in cordova,
I got it to log in the user in facebook, the thing is as oauthRedirectURL I end up in a white page, that says Success
and I'm not sure how to get the user back to the app,
if (runningInCordova) {
oauthRedirectURL = "http://ift.tt/1cArnGp";
}
Question is,
What url can i use to point my app ?
-edit-
I found solutions like http://ift.tt/1B37W3u
but I don't have a apache2 in the cordova environament..
-2nd edit-
This is my current code,
openFB.init({appId: 'xxxxxxxxyyyyyyyy'});
openFB.login( function(response) {
if(response.status === 'connected') {
alert('Facebook login succeeded, got access token: ' + response.authResponse.token);
} else {
alert('Facebook login failed: ' + response.error);
}
}, {scope: 'email'});
This the line of the lib that fills this value
if (runningInCordova) {
oauthRedirectURL = "http://ift.tt/1cArnGp";
}
Aucun commentaire:
Enregistrer un commentaire