Module: FbGraph::Connections::Admins

Included in:
Page
Defined in:
lib/fb_graph/connections/admins.rb

Instance Method Summary collapse

Instance Method Details

#admin?(user, options = {}) ⇒ Boolean

Returns:

  • (Boolean)


4
5
6
7
# File 'lib/fb_graph/connections/admins.rb', line 4

def admin?(user, options = {})
  admin = self.connection :admins, options.merge(:connection_scope => user.identifier)
  admin.present?
end