Instagram API


I am currently trying to retrieve the access token via the Instagram API. The API documentation suggests a cURL command like so:

curl \\-F 'client_id=CLIENT-ID' \\
    -F 'client_secret=CLIENT-SECRET' \\
    -F 'grant_type=authorization_code' \\
    -F 'redirect_uri=YOUR-REDIRECT-URI' \\
    -F 'code=CODE' \\

How do I replicate this in PHP?

Thanks in advance.


Hi jonpenny,

There is a project on GitHub that provides a wrapper to make calls to the Instagram API.

Thank you Chris. This will make my life much easier rather than writing my own.

Thanks again,

No worries and indeed it will.