Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Bumann committed Feb 21, 2011
1 parent cd5e25b commit 58dbca3
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions README.md
Expand Up @@ -22,21 +22,24 @@ Then add this to your ApplicationHelper

module ApplicationHelper
include FacebookShare

FacebookShare.default_facebook_share_options = {
:framework => :jquery,
:jquery_function => "$",
:app_id => "YOUR_APP_ID",
:status => "false",
:cookie => "false",
:xfbml => "false",

:selector => '.fb_share',
:locale => "en_US"
}
end

Global configuration (config/initializers/facebook_share.rb ):

FacebookShare.default_facebook_share_options = {
:framework => :jquery,
:jquery_function => "$",

:app_id => "YOUR_APP_ID",
:status => "false",
:cookie => "false",
:xfbml => "false",

:selector => '.fb_share',
:locale => "en_US"
}

You can ommit *app_id* parameter, if you already have a Facebook Application initialized in your project.

Be sure you have <div id="fb-root"></div> in your application layout before you load the Facebook Connect JS
Expand Down

0 comments on commit 58dbca3

Please sign in to comment.