Skip to content Skip to sidebar Skip to footer

Updating Facebook App Settings Via Graph API

I have a problem with updating app settings via Graph API using Javascript SDK. I followed the documentation (https://developers.facebook.com/docs/graph-api/reference/app) and trie

Solution 1:

Don't use object-

FB.api(
   "/APP_ID/?access_token=APP_ID|APP_SECRET",
   "POST",
   {
      "canvas_url": "Test about text",
      "migrations": "{'secure_stream_urls': true}",
      "restrictions": "{'age': '21+', 'type': 'alcohol'}"
   },
   function (response) {
     //if (response && !response.error) {
       console.log(response);   // console the complete response for any errors
     //}
   }
);

Post a Comment for "Updating Facebook App Settings Via Graph API"