Twitter share and facebook like button for haml-rails, html/erb

>Twitter share and facebook like button for html/erb
<div class='spread'>  <div class='twshare left'>   <a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="funonrails">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>  </div>  <script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="" layout="button_count" show_faces="false" width="450" font=""></fb:like></div>Twitter share and facebook like button for haml
.spread .twshare.left %a.twitter-share-button.left{"data-count" => "horizontal", "data-via" => "fuonrails", :href => "http://twitter.com/share"} Tweet %script{:src => "http://platform.twitter.com/widgets.js", :type => "text/javascript"} .fshare.left{:style => 'padding-left: 0px; margin-left: 10px;'} %script{:src => "http://connect.facebook.net/en_US/all.js#xfbml=1"} %fb:like{:layout => "button_count", :show_faces => "false", :width => "450"} .CLRSample Buttons

Advertisements

About sandipransing

Web Developer #ruby #rails #JS
This entry was posted in Ruby on Rails and tagged , , . Bookmark the permalink.

4 Responses to Twitter share and facebook like button for haml-rails, html/erb

  1. Sachin Kadam says:

    Hi,

    Is there any EXTERNAL LIBRARIES which will help me to fetch facebook data(i.e. his post, friend requests, no. of friends, photo tags etc.) for a particular user.

    Thanks.

  2. Sachin Kadam says:

    Thanks for the prompt reply.

  3. cancan says:

    I get pleasure from, cause I discovered just
    what I used to be having a look for. You’ve ended my 4 day long hunt!
    God Bless you man. Have a nice day. Bye

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s