In the new GRAPH API v3 with Javascript, use the Tasks field instead of the Perm field.
//Example JS Call FB.api('/me/accounts?fields=name,picture.type(square),access_token,tasks', function(response) {console.log(response)}); //Example Response { "name": "Engage", "picture": { "data": { "height": 50, "is_silhouette": false, "url": "https://scontent.xx.fbcdn.net/v/t1.0-1/c1.0.50.50a/p50x50/430597_259746387431503_2144341304_n.jpg?_nc_cat=103&_nc_eui2=AeGVrU8Wxe7k5BMvRXOEAcUo9dMIxyeMP9POPkYDwfgdRl8QquAtz1GcwXpJaK4z_0o&_nc_ht=scontent.xx&oh=e5b952a4adbbcd1b1af6b71b688f7284&oe=5CF9A64C", "width": 50 } }, "access_token": "XXXXXXXXXX", "id": "253263371413138", "tasks": [ "ANALYZE", "ADVERTISE", "MODERATE", "CREATE_CONTENT", "MANAGE" ] }
Instead of looking for 'ADMINISTER' in an array, look for 'MANAGE'.
Full details here: https://developers.facebook.com/docs/pages/access-tokens
Jason Engage Feb 06 '19 at 10:22 2019-02-06 10:22
source share