How to get a user's Instagram feed

后端 未结 7 905
北海茫月
北海茫月 2020-12-04 23:10

I\'d like to get a user\'s Instagram feed using PHP. I\'ve signed up for an Instagram Developer Account and tried pulling in a user\'s info and photos, but the response isn

7条回答
  •  悲哀的现实
    2020-12-04 23:23

    Found this medium article:- https://medium.com/@bkwebster/how-to-get-instagram-api-access-token-and-fix-your-broken-feed-c8ad470e3f02

      time() - 60*60){
                            // If a cache file exists, and it is newer than 1 hour, use it
                            $jsonData = json_decode(file_get_contents($cache));
                        } else {
                            $jsonData = json_decode((file_get_contents($url)));
                            file_put_contents($cache,json_encode($jsonData));
                        }
                        foreach ($jsonData->data as $key=>$value) {
                            ?>
                            
                            
    

提交回复
热议问题