Using the Insagram API

Helllo.
I’m new PHP API developer and I would like to learn about the instagram API.
I tried to make a working example using guides from the internet for basic php instagram web applications, and all of them are outdated / using old frameworks unavailable anymore / broken links so I decided to ask for your help.

After reading the instagram api developer documentation I still can’t understand how to use the API to retrive photos.

Any help will be appreciated!

  1. Authenticate user by redirecting him to the instagram’s authorization url
  2. Instagram will redirect him back to your PHP script with code parameter added
  3. Send request (with cURL or file_get_contents) with that code to instagram’s access_token url and get access token in response
  4. Send requests to API (with cURL again) with access token added to url and get data you want in JSON response

I don’t want to get user photos, I just want to post photos from specific location.

So what the problem?

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.