def fb_like_button(options={})
      href = options[:url] || request.url
      params = options.slice(:layout, :send, :width, :height, :show_faces, :action, :colorscheme, :font, :appId)
      params.reverse_merge!({:href => href,
                             :layout => 'button_count',
                             :send => false,
                             :width => 450,
                             :height => 21,
                             :show_faces => false,
                             :action => 'like', 
                             :colorscheme => 'light',
                             :font => 'verdana'
                            })

      style = "border:none; overflow:hidden; width:#{params[:width]}px; height:#{params[:height]}px;"

      content_tag :iframe, '', :src => "//www.facebook.com/plugins/like.php?#{params.to_query}",
                               :scrolling => 'no',
                               :frameborder => 0,
                               :allowTransparency => true,
                               :style => style,
                               :class => 'fb-like-btn'
    end
def fb_like_button(options={})
      href = options[:url] || request.url
      params = options.slice(:layout, :send, :width, :height, :show_faces, :action, :colorscheme, :font, :appId)
      params.reverse_merge!({:href => href,
                             :layout => 'button_count',
                             :send => false,
                             :width => 450,
                             :height => 21,
                             :show_faces => false,
                             :action => 'like', 
                             :colorscheme => 'light',
                             :font => 'verdana'
                            })

      style = "border:none; overflow:hidden; width:#{params[:width]}px; height:#{params[:height]}px;"

      content_tag :iframe, '', :src => "//www.facebook.com/plugins/like.php?#{params.to_query}",
                               :scrolling => 'no',
                               :frameborder => 0,
                               :allowTransparency => true,
                               :style => style,
                               :class => 'fb-like-btn'
    end
Facebook like button
 http://developers.facebook.com/docs/reference/plugins/like/