module FacebookSocialPlugins::Helper::View

Public Instance Methods

fb_activity(namespace, action) click to toggle source
# File lib/facebook-social_plugins/helper/view.rb, line 11
def fb_activity namespace, action
        content_tag :div, '', :class => "fb-activity", :'data-actions' => "#{namespace}:#{action}"
end
fb_analytics(app_id) click to toggle source
# File lib/facebook-social_plugins/helper/view.rb, line 7
def fb_analytics app_id
        content_tag :meta, '', :property => "fb:admins", :content => app_id
end
fb_logout_button(options = {}) click to toggle source
# File lib/facebook-social_plugins/helper/view.rb, line 21
def fb_logout_button options = {}
        content_tag :a, '', {:id => 'fb_logout_and_reload', :href => '#'}.merge(options[:html] || {}) do
                content_tag(:img, '', :id => 'fb_logout_image', :src => "/assets/fb_logout_#{options[:size] || :small}.gif", :alt => "Facebook Logout").html_safe
        end
end
fb_root() click to toggle source
# File lib/facebook-social_plugins/helper/view.rb, line 3
def fb_root
        content_tag :div, '', :class => "fb-root"
end