FB.api('/1354376857/groups', function(response){
Data = response.name;
alert(Data);
if (response.error) {
alert(response.error.message);
}
});
The outputted error message reads: "An access token is required to request this resource" and Data content is undefined for my Facebook app. The user is successfully logged in and the "user_groups" permission has been approved by the user.
I was under the impression that FB.api automatically sets the access token. Any thoughts on why this error is occurring?