vendor/plugins/facebooker/lib/facebooker/rails/helpers.rb
# Renders a link that, when clicked, initiates a dialog requesting the specified extended permission from the user.
# 
# You can prompt a user with the following permissions:
#   * email
#   * read_stream
#   * publish_stream
#   * offline_access
#   * status_update
#   * photo_upload
#   * create_event
#   * rsvp_event
#   * sms
#   * video_upload
#   * create_note
#   * share_item
#   * read_mailbox
# Example:
# <%= fb_prompt_permission('email', "Would you like to receive email from our application?" ) %>
#
# See http://wiki.developers.facebook.com/index.php/Fb:prompt-permission for 
# more details. Correct as of 7th June 2009.
#
Renders a link that, when clicked, initiates a dialog requesting the specified extended permission from the user.


Renders a link that when clicked initiates a dialog requesting the specified extended permission from the user .
def fb_prompt_permission(permission,message,callback=nil)
        raise(ArgumentError, "Unknown value for permission: #{permission}") unless VALID_PERMISSIONS.include?(permission.to_sym)
        args={:perms=>permission}
        args[:next_fbjs]=callback unless callback.nil?
        content_tag("fb:prompt-permission",message,args)
      end
def fb_prompt_permission ( permission , message , callback = nil ) raise ( ArgumentError , "Unknown value for permission: #{permission}" ) unless VALID_PERMISSIONS . include? ( permission . to_sym ) args = { :perms => permission } args [ :next_fbjs ] = callback unless callback . nil? content_tag ( "fb:prompt-permission" , message , args ) end
Renders a link that, when clicked, initiates a dialog requesting the specified extended permission from the user.
Renders a link that when clicked initiates a dialog requesting the specified extended permission from the user .
permission
<not_specific>
message
<not_specific>
callback
<not_specific>