lib/mogli/user.rb
def has_permission?(permission)
      if !ALL_EXTENDED_PERMISSIONS.include? permission
        raise UnrecognizedExtendedPermissionException,
              "The requested permission is not recognized as a facebook extended permission: '#{permission}'"
      end

      if !defined?(@extended_permissions)
        fetch_permissions
      end

      extended_permissions[permission]
    end
# check if the facebook user has a specific permission. the permission arg
# is a symbol matching the facebook extended permission names exactly:
# http://developers.facebook.com/docs/authentication/permissions
check if the facebook user has a specific permission.
check if the facebook user has a specific permission .
def has_permission?(permission)
      if !ALL_EXTENDED_PERMISSIONS.include? permission
        raise UnrecognizedExtendedPermissionException,
              "The requested permission is not recognized as a facebook extended permission: '#{permission}'"
      end
      if !defined?(@extended_permissions)
        fetch_permissions
      end
      extended_permissions[permission]
    end
def has_permission? ( permission ) if ! ALL_EXTENDED_PERMISSIONS . include? permission raise UnrecognizedExtendedPermissionException , "The requested permission is not recognized as a facebook extended permission: '#{permission}'" end if ! defined? ( @extended_permissions ) fetch_permissions end extended_permissions [ permission ] end
check if the facebook user has a specific permission.
check if the facebook user has a specific permission .
permission