Auto-click function for facebook login button using javascript
(Function to initialize facebook login process)
Now i want to click on some other button and want to initialize facebook login functionality .
To do so i need 2-3 lines of code / a function to start login process.
function facebookLogin() {
FB.login(function(response) {
if (response.authResponse) {
statusChangeCallback(response);
// console.log('Authenticated!');
// location.reload(); //or do whatever you want
}
},
{
scope: 'email,user_checkins'
});
}
facebookLogin();
No comments:
Post a Comment