How do I create a retweet button?

Discussion in 'PHP' started by onlinedave, Sep 17, 2009.

  1. #1
    I like to add a retweet button on my website page ( not a WP) and in the message with a default text and an embed URL. Does anyone know how to code this?
     
    onlinedave, Sep 17, 2009 IP
  2. dweebsonduty

    dweebsonduty Active Member

    Messages:
    131
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    71
    Digital Goods:
    1
    #2
    Make a link to "http://twitter.com/?status=YOURMESSAGE"
     
    dweebsonduty, Sep 17, 2009 IP
  3. ErikTheRed

    ErikTheRed Peon

    Messages:
    33
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Not really a true "retweet", but it is as simple as making a link like:
    http://twitter.com/home?status=Your message goes here http://example.com/index.html
    Code (markup):
    The user still has to click "update" on their twitter page to actually update their status however.

    Twitter is going to incorporate a retweet function into their API very soon, and this will be the way you want to do this when it's ready.

    You can take a look at the api documentation for the new retweet function, but developers can't use it yet (can't wait for this!:D)
    http://apiwiki.twitter.com/Twitter-REST-API-Method:-statuses-retweet
    Code (markup):
     
    ErikTheRed, Sep 17, 2009 IP
  4. SubZtep

    SubZtep Member

    Messages:
    69
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    48
    #4
    SubZtep, Sep 19, 2009 IP
  5. Brandon_R

    Brandon_R Peon

    Messages:
    330
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Copy and Paste the following code where you want the button to be displayed:

    Official reTweet Button

    When the URL is not the same as the current URL
    Smaller Button
    Different Username
     
    Brandon_R, Sep 19, 2009 IP