I am following this tutorial :
http://ift.tt/1qxLbnN
I am interested in the Facebook login part. I do everything like in the tutorial and when I login , I get a new blank window, and nothing happens afterward.
Am I missing smth . My code is this :
FacebookController.$inject = ['$scope'];
function FacebookController($scope) {
$scope.fbLogin = function () {
openFB.login(
function (response) {
if (response.status === 'connected') {
console.log('Facebook login succeeded');
$scope.closeLogin();
} else {
alert('Facebook login failed');
}
},
{ scope: 'email,publish_actions' });
}
};
And in the app.js I have the following line :
openFB.init({ appId: 'app_id_number' });
Aucun commentaire:
Enregistrer un commentaire