Below is a query for permissions – I am trying to see if a specific perm is granted.. Any help would be greatly appreciated…
JSONObject permissions = new JSONObject(
IOUtil.urlToString(new URL("https://graph.facebook.com/me/permissions?access_token=AAACEdEose0cBALhOmvDd14yIJQUTZAJ4GxFmkaHQmGKfwBwS1I32GAIsJolPZAgqB3prnVXqrvwlInYxcutnOOVFdRY6RBcgWfGT46KrSgMzdjnG6U")));
Here is the sample responce {"data": [
{
"installed": 1,
"user_likes": 1,
"publish_stream": 1,
"user_interests": 1,
"user_hometown": 1,
"user_groups": 1,
"type": "permissions"
}]}
To get the “installed” value:
Then do your comparisons as required.