Jacek Gralak Jacek Gralak - 2 months ago 11
AngularJS Question

Embed Instagram recent photos from my profile in AngularJS

I am trying to retrieve instagram feed (recent photos) from my profile (I want to embed those photos in my website). However I cannot achieve it with any library nor manual REST API call (both GET and POST):

https://api.instagram.com/v1/users/lazycangoo/media/recent/?access_token=ACCESS_TOKEN&count=9

Can you please support? It seems I do not know how to use the API..

Answer

Documentation says that to get a user's recent media, you should send a GET request to the following URL:

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

What you are doing wrong is using username instead of user_id.

Try this:

https://api.instagram.com/v1/users/5136815/media/recent/?access_token=ACCESS-TOKEN
Comments