Skip to content

Instantly share code, notes, and snippets.

@kineticac
Created March 20, 2011 03:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kineticac/878040 to your computer and use it in GitHub Desktop.
Save kineticac/878040 to your computer and use it in GitHub Desktop.
This is the way to create a query to ask for a set of permissions from Facebook using the Facebook Javascript SDK
var basicPerms = "read_stream,user_interests";
var queryString = 'select ' + basicPerms + ' from permissions where uid=me()';
var query = FB.Data.query(queryString);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment