A
A
Alexander Pankov2020-01-10 12:06:04
PHP
Alexander Pankov, 2020-01-10 12:06:04

How to regularly receive the instagram feed of your account?

Hello.
There is an instagram account and a site in php
, you need to write a script that would contact the api and get the last 10 photos and information about the account itself.
I google and I can’t understand where and how to still get accsess_token to access api and why tokens live for 1 hour, can I somehow get around this? perhaps there is some latest and working instruction or library on github, I can’t find it, please tell me.
there are no problems in writing the script, there are problems with connecting to the Instagram api.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir, 2020-01-10
@PankovAlxndr

https://developers.facebook.com/docs/instagram-bas...
API authentication is handled by Instagram User Access Tokens that conform to the OAuth 2.0 protocol. Access tokens are app-scoped (unique to the app and user pair) and can be short-lived or long-lived . API requests that query Instagram users or their media must include an Instagram User Access Token.

A
Alexey Istomin, 2020-04-21
@webistomin

I wrote a small library for such a case ( link to github ). It turned out to be only 2Kb and does not require access_token and client_id from Instagram.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question