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

  • Home
  • SEARCH
  • 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 8601253
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T01:48:00+00:00 2026-06-12T01:48:00+00:00

I am newbie in programming, especially in network side. So now I’m creating app

  • 0

I am newbie in programming, especially in network side. So now I’m creating app to interact with Instagram. In my project I use AFNetworking. I saw their documentation and many examples here. And I don’t understand yet how to get POST request to Instagram API. Please could u give me the real code example or something where I can read about how to do this operation? Please help. I tried to make request like this, it gives no errors and no response. It gives nothing 🙁

(IBAction)doRequest:(id)sender{

NSURL *baseURL = [NSURL URLWithString:@"http://api.instagram.com/"];

AFHTTPClient *httpClient = [[AFHTTPClient alloc] initWithBaseURL:baseURL];
[httpClient defaultValueForHeader:@"Accept"];

NSDictionary *params = [NSDictionary dictionaryWithObjectsAndKeys:
                        user_token, @"access_token",
                        nil];

[httpClient postPath:@"/feed" parameters:params success:^(AFHTTPRequestOperation *operation, id responseObject) {
    // reponseObject will hold the data returned by the server.
    NSLog(@"data: %@", responseObject);
}failure:^(AFHTTPRequestOperation *operation, NSError *error) {
    NSLog(@"Error retrieving data: %@", error);
}];


NSLog(@"click!!");
}
  • 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-06-12T01:48:02+00:00Added an answer on June 12, 2026 at 1:48 am

    few things to care about.
    Instagram API returns JSON so you can use AFJSONRequestOperation which will return an already parsed NSDictionary.
    The Instagram API says that:

    All endpoints are only accessible via https and are located at
    api.instagram.com.

    You should make a change to your baseURL.

    AFHTTPClient *client = [AFHTTPClient clientWithBaseURL:yourURL];
    NSURLRequest *request = [client requestWithMethod:@"POST"
                                                 path:@"/your/path"
                                           parameters:yourParamsDictionary];
    AFJSONRequestOperation *operation =
    [AFJSONRequestOperation
     JSONRequestOperationWithRequest:request
     success:^(NSURLRequest *request, NSHTTPURLResponse *response, id JSON)
    {
        // Do something with JSON
    }
     failure:^(NSURLRequest *request, NSHTTPURLResponse *response, NSError *error, id JSON)
    {
        // 
    }];
    
    // you can either start your operation like this 
    [operation start];
    
    // or enqueue it in the client default operations queue.
    [client enqueueHTTPRequestOperation:operation];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am a newbie in programming. I am trying to use JSZip to zip
I have a newbie Linux programming question. Suppose I have a project that uses
I am newbie in network programming. Dear developers can you tell me what mean
Newbie here programming my first app (having made several tutorial apps). I am using
I'm a newbie in programming and visual basic 2008 language. I'm learning to use
I'm a struggling newbie to programming and trying to make a freemium style app
I am complete newbie for programming and this is my first real program I
I'm a socket programming newbie. Here's a snippet: struct sockaddr_storage client_addr; ... client_addr_size =
I am newbie for iOS programming. I'm trying to create an array of arrays
I'm a newbie in php programming and i can't make it finding where is

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.