I am using the Facebook javascript SDK to allow users of my webpage to update their status. I am getting a “Uncaught SyntaxError: Unexpected token ,” in my login code for my permissions:
FB.login(function(response)
{
if (response.authResponse)
{
alert('Logged in and accepted permissions!');
}
}, {scope:'publish_stream', 'offline_access', 'manage_pages'});
Any ideas why that would be? I am pretty sure the syntax is correct.
You are writing permissions in wrong way,
Use this,
Reference: http://developers.facebook.com/docs/reference/javascript/FB.login/