With the following API call:
FB.api(id + '/likes', ‘post’, function (resp) {
console.log(resp);
});
We are getting this error message frequently
/**/ FB._callbacks.__gcb4({"error":{"message":"Trying Too Often: You are attempting this too often. Please try again later.","type":"OAuthException","code":368}});
Here's the detailed response:
"response": {
"status": 200,
"statusText": "OK",
"httpVersion": "HTTP/1.1",
"headers": [
{
"name": "Date",
"value": "Mon, 23 Jul 2012 17:40:32 GMT"
},
{
"name": "WWW-Authenticate",
"value": "OAuth \"Facebook Platform\" \"access_denied\" \"Trying Too Often: You are attempting this too often. Please try again later.\""
},
{
"name": "X-FB-Rev",
"value": "594580"
},
{
"name": "Connection",
"value": "keep-alive"
},
{
"name": "Content-Length",
"value": "164"
},
{
"name": "Pragma",
"value": "no-cache"
},
{
"name": "X-FB-Debug",
"value": "hkZ8XhdFBg/CIhZf4CBFvs2fhUwNECrkD/VcAm41EvA="
},
{
"name": "Content-Type",
"value": "text/javascript; charset=UTF-8"
},
{
"name": "Access-Control-Allow-Origin",
"value": "*"
},
{
"name": "Cache-Control",
"value": "no-store"
},
{
"name": "Expires",
"value": "Sat, 01 Jan 2000 00:00:00 GMT"
}
],
Is this the right way to use the API call? If not, what's a better way?