views:

30

answers:

1

I want to check the status of the extended permissions for a user of my Facebook app. I don't want to request permissions, I just want to know what permissions they have already granted access to. Is this possible?

I'm happy to use the Graph or REST API to do this in PHP or JS.

+2  A: 

In the JS SDK you can perform an FQL query to get any extended permission:

FB.Data.query('select publish_stream, email from permissions where uid={0}', uid)
.wait(function(rows) {
  var permissions = [];
  if (rows.publish_stream) permissions.push("publish to stream");
  if (rows.email) permissions.push("send email");
  alert("Can "+permissions.join(", ");
});
peterjwest

related questions