Anu
Joined: 01 Jan 2010 Posts: 82
|
Posted: Thu Jul 22, 2010 12:27 pm Post subject: Twitter Retweet Integartion |
|
|
Hi,
Code to implement the RETWEET (twitter) in your rails application.
All is well known about the Retweet.This Retweet is related to the Twitter.
When we click on something in some page,if thats having the Retweet feature,It posted like the article or anything is liked by you in Twitter Account.
Integration :
To implement the Retweet button in your application you need to follow the below steps.
Step 1:
Add this javascript function within the body of your rails rhtml:
<script type="text/javascript">
tweetmeme_style = "compact";
tweetmeme_url = 'http:';
tweetmeme_source = 'your_mail_id';
</script>
Step 2:
Finally add the Tweet button where ever you require in your rails application:
<script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script>
Its acts same as Flike,but a single user can Tweet many times.It means the user can likes the page or the article many times.the count will increment Respectively.
The article will post in your Twitter Account.
Thats it...you will get the Retweet button in your Rails Application.
Hope it helps..
Thank you,
Anu |
|