Hello.
I am trying to get extended permissions with my FB Connect Application.
I was wondering how one does this with FB.Login() as I am not very knowledgable in JS.
Thanks
Hello.
I am trying to get extended permissions with my FB Connect Application.
I was wondering how one does this with FB.Login() as I am not very knowledgable in JS.
Thanks
FB.Login() docs have an example:
<INPUT TYPE="BUTTON" ONCLICK="fbLogin()" value="login">
function fbLogin() {
FB.login(function(response) {
if (response.session) {
//user is logged in, reload page
window.location.reload(true);
} else {
// user is not logged in
}
}, {perms:'read_stream,publish_stream,offline_access'});
}
What I did, using the code from the Developer site, instead of using the "<fb:login-button>
", I used this:
<a href="#" onclick="FB.login(function(response){},{perms:'email,publish_stream'});">
And it works great.