Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7171513
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T15:25:45+00:00 2026-05-28T15:25:45+00:00

I need your help. I have been switching from various libraries trying to find

  • 0

I need your help. I have been switching from various libraries trying to find the suitable one to integrate Twitter in my application.

A while back i found out that i could use ASIHTTPRequest to send tweets from my app. I need to know if there’s any tutorial or sample code available.

And i have already looked at share-kit and i prefer to integrate Twitter using ASIHTTPRequest

note: I have created my project using ARC, and it shoudl support both iOS4 and 5.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T15:25:46+00:00Added an answer on May 28, 2026 at 3:25 pm

    Twitter’s documentation says that you have to make GET or POST HTTP requests with the appropriate form data (key-value pairs). For example, to post a status update, you can do:

    NSURL *url = [NSURL URLWithString:@"http://api.twitter.com/1/statuses/update.json"];
    ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:url];
    
    [request addRequestHeader:@"Accept" value:@"*/*"];
    [request addRequestHeader:@"onnection" value:@"close"];
    [request addRequestHeader:@"Content-Type" value:@"application/x-www-form-urlencoded"];
    [request addRequestHeader:@"Content-Length" value:@"17"];
    [request addRequestHeader:@"Host" value:@"api.twitter.com"];
    
    [request setPostValue:@"User's new status" forKey:@"status"];
    
    // set here completion/error handlers
    
    [request startAsynchronous];
    

    More documentation on Twitter’s REST/HTTP API: https://dev.twitter.com/docs

    For authetication, you’ll need some kind of OAuth library. Here’s Karl Adam’s MPOAuth, with few additions and corrections by me: https://github.com/H2CO3/MPOAuthiOS

    On iOS 5.x, you can use Apple’s default, and easy to use Twitter.framework: http://developer.apple.com/library/ios/#documentation/Twitter/Reference/TwitterFrameworkReference/_index.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem here and need your help. I've been trying to capture
I need your help, For example I have a decimal type variable and I
I've some questions .. and I really need your help. I have an application.
ive being trying to cope with this problem but still. I need your help.
I have been running into some troubles recently and I think I need your
I have been trying to replicate the buffer overflow example3 from this article aleph
Hi, ive been dealing with this for some time now and need your help.
I have been trying to strip out some data from HTML files. I have
I have a query I need some help with, have been checking out a
I need your help to define a special case in XML schema: A sequence

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.