Method: Facebooker::User#has_permission?
- Defined in:
- lib/facebooker/models/user.rb
#has_permission?(ext_perm) ⇒ Boolean
Checks to see if the user has enabled the given extended permission
464 465 466 |
# File 'lib/facebooker/models/user.rb', line 464 def (ext_perm) # ext_perm = email, offline_access, status_update, photo_upload, create_listing, create_event, rsvp_event, sms session.post('facebook.users.hasAppPermission', {:ext_perm=>ext_perm, :uid => uid}, false) == "1" end |