I want to send a rating from the JavaScript SDK. Here is my current attempt:
FB.api("/me/scores", 'post', {score: seconds, access_token: FB.getSession().access_token}, function(response){
if (!response || response.error) {
console.error(response);
} else {
console.log(response);
}
});
I get an error message:
(
Since I am passing an access token, why does this not work?
Thank.
source
share