Skip to content

Instantly share code, notes, and snippets.

@twinge
Created May 31, 2011 13:52
Show Gist options
  • Save twinge/1000529 to your computer and use it in GitHub Desktop.
Save twinge/1000529 to your computer and use it in GitHub Desktop.
class Apic
API_ALLOWABLE_FIELDS = {
:user => ["first_name", "last_name", "name", "id", "location", "birthday","locale","gender","interests","friends","fb_id","picture"],
:school => [""],
:friends => ["id", "name"],
}
SCOPE_REQUIRED = {
:user => {
"all" => ["userinfo"],
"first_name" => ["userinfo"],
"last_name" => ["userinfo"],
"name" => ["userinfo"],
"id" => ["userinfo"],
"location" => ["userinfo"],
"birthday" => ["userinfo"],
"locale" => ["userinfo"],
"gender" => ["userinfo"],
"interests" => ["userinfo"],
"friends" => ["userinfo"],
"fb_id" => ["userinfo"],
"picture" => ["userinfo"]
},
:friends => {
"all" => ["userinfo"],
"id" => ["userinfo"],
"name" => ["userinfo"]
}
}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment