Skip to content

Permissions

nov matake edited this page Aug 8, 2011 · 1 revision

Permissions

Fetching

me = FbGraph::User.me(ACCESS_TOKEN)
me.permissions # => Array of approved permissions
me.permissions.include?(:email)
 :

Revoking

me = FbGraph::User.me(ACCESS_TOKEN)
me.revoke! :email # => Revoke "email" permission
me.revoke! # => de-authorize whole permissions (your access token will be invalidated after this call)
Something went wrong with that request. Please try again.