Instagram Api and authentication -


i want make instagram web viewer http://www.imgrum.org

now, when open https://www.instagram.com/developer/

i see instagram requires authentication every user access images, have never authorized imgrum, yet images etc. visible on imgrum.org. how doing it? or misinterpreting instragram api documentation?

you don't need authentication specific user access specific user's public content via api.

in order access public instagram content via api, need authenticate single instagram account.

once authenticate instagram account, can, through access token account, access of public instagram content.

as concrete example, here 2 requests can make single user access token:

1) request recent images of user access token have.

https://api.instagram.com/v1/users/self/media/recent/?access_token=access-token 

note here self: meaning user access token access-token.

2) request recent images of other user on instagram public account.

https://api.instagram.com/v1/users/{user-id}/media/recent/?access_token=access-token 

note here {user-id} in place of self: meaning can enter user-id public instagram account. , note request still requires access-token, user associated access-token not have same user associated user-id.

this documented here:
https://www.instagram.com/developer/endpoints/users/
https://www.instagram.com/developer/authentication/

update:

in order make 2nd api call listed above {user-id}, need access-token (of authenticated user) include public-content part of scope. in order that, app must approved instagram.


Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -