vendor/plugins/facebooker/lib/facebooker/rails/helpers.rb
# Renders a link to prompt for multiple permissions at once.
#
# Example:
# <%= fb_prompt_permissions(['email','offline_access','status_update'], 'Would you like to grant some permissions?')
Renders a link to prompt for multiple permissions at once.
Renders a link to prompt for multiple permissions at once .
def fb_prompt_permissions(permissions,message,callback=nil)
        permissions.each do |p|
          raise(ArgumentError, "Unknown value for permission: #{p}") unless VALID_PERMISSIONS.include?(p.to_sym)          
        end
        args={:perms=>permissions*','}
        args[:next_fbjs]=callback unless callback.nil?
        content_tag("fb:prompt-permission",message,args)        
      end
def fb_prompt_permissions ( permissions , message , callback = nil ) permissions . each do | p | raise ( ArgumentError , "Unknown value for permission: #{p}" ) unless VALID_PERMISSIONS . include? ( p . to_sym ) end args = { :perms => permissions * ',' } args [ :next_fbjs ] = callback unless callback . nil? content_tag ( "fb:prompt-permission" , message , args ) end
Renders a link to prompt for multiple permissions at once.
Renders a link to prompt for multiple permissions at once .
permissions
<not_specific>
message
<not_specific>
callback
<not_specific>