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 7034399
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:10:52+00:00 2026-05-28T01:10:52+00:00

I have integrate twitter api in my application. In my application i have got

  • 0

I have integrate twitter api in my application. In my application i have got oauth_token and oauth_secre_key by using oauth library. NOw i want to post a new tweet. How i send my http request with authorization header. my problem is that i have a url for send message from twitter api that is :-https://api.twitter.com/1/statuses/update.json?status=Maybe%20he%27ll%20finally%20find%20his%20keys.%20%23peterfalk&trim_user=true&include_entities=true but when i open i browser then i got this error:-

{“error”:”Could not authenticate you.”,”request”:”/1/statuses/update.json?status=Maybe%20he%27ll%20finally%20find%20his%20keys.%20%23peterfalk&trim_user=true&include_entities=true”}

What is the way to fix this error? How i add authorization header with my request?

Thanks in advances…

  • 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-28T01:10:53+00:00Added an answer on May 28, 2026 at 1:10 am

    I get this error because i have not set parameter in proper format. Now i use this code and working fine.

    NSString *trimmedText=[NSString stringWithFormat:@”%@”,txt_comment.text];

    NSURL *url=[NSURL URLWithString: @"https://api.twitter.com/1/statuses/update.xml"];
    NSMutableDictionary *params = [NSMutableDictionary dictionaryWithCapacity:0];
    [params setObject:trimmedText forKey:@"status"];
    NSString *body = [self _queryStringWithBase:nil parameters:params prefixed:NO];
    
    NSData* requestData = [body dataUsingEncoding: NSUTF8StringEncoding];
    
    
    OAMutableURLRequest *request = [[[OAMutableURLRequest alloc] initWithURL:url consumer: appDelegate.consumer token: appDelegate.accessToken realm: nil signatureProvider: nil] autorelease];  
    
    [request setHTTPMethod:@"POST"];
    [request setHTTPBody:requestData];
    OADataFetcher *fetcher = [[OADataFetcher alloc] init];
    
    [fetcher fetchDataWithRequest:request
                         delegate:self
                didFinishSelector:@selector(accessTokenTicket_post:didFinishWithData:)
                  didFailSelector:@selector(accessTokenTicket:didFailWithError:)];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to integrate twitter api using library twitter4j-core-2.1.1-SNAPSHOT.jar. But i am getting
I have integrate Foursquare API for iPhone application.I want to check this particular user
I have created a music application in iphone . i want to integrate twitter
I want to integrate twitter in my android app. I have used twitter4j,jtwitter but
In my application I have integrate Three20 Library and Restkit framework, after this I
I'm using Drupal twitter module with recommended Oauth version(2.02) and I can post to
I had successfully integrate twitter API and I am able to post text from
I'm trying to integrate Twitter with my App right now. I have successfully set
I have tried to integrate the Picasa API on iPhone, compiles fine, but I
I have a JSP struts application that uses Spring to integrate with the services/dao/database.

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.