Shishir.bobby
Shishir.bobby

Reputation: 10984

Send images to twitter through code

alt text

HI all, can we post images with tweets in twittter through code in iphone???? Check the screen shots

I am using busyAgent.this helps me to tweet wiothout posting images, i need to send images to at the time of tweeting

Guidence regards

alt text

Upvotes: 0

Views: 582

Answers (1)

djhworld
djhworld

Reputation: 6776

You will need to use a few APIs for this (for what I think you are trying to do?)

  • The Twitter API For posting a tweet
  • An API of many of the popular twitter image hosting/sharing websites, for example The Twitpic API
    • This will allow you to upload the image to their site (through code) and get a URL in return, containing the location of your uploaded image

Then you just need to do something like

  • Upload your image using the api of your image sharing site and storing the URL somewhere
  • Formulate your tweet message with the URL in it
  • Use the Twitter API to connect to your account (or whoever is using your application and has supplied their login credentials)
  • Post the tweet

Upvotes: 1

Related Questions