instagram feed?

wordpress
themeforest

#1

Hi, it seems recently instagram change its api, you can not display different instagram feeds then yours. But I saw many authors in themeforest still can display different instagram feed. I want to know, how can they do that? Thanks!!


#2

Here are some sample code that most developers use in their themes. You will just need to parse the json that you get back.


#3

thanks for reply. My code can work, but it can only display my own ins feed, it can not display other ins feeds with my access token? I want to know how to display feeds of some famous ins author, thanks!!


#4

No, you can’t display others instagram feed with your access token from what I know. You can try something like this, I am not sure if this is the proper way:

$remote = wp_remote_get( ‘https://www.instagram.com/username/media/’, array( ‘decompress’ => false ) );
$data = json_decode( wp_remote_retrieve_body( $remote ), true );

You should see what others say about your problem or consult the instagram api.


#5

is it a way to display others Instagram feeds?


#6

Yes, you can fetch latest 20 pictures without the access token but this is not a good solution.


#7

how to fetch images without access token ?