Jluis Posted February 10, 2020 Share Posted February 10, 2020 hello , i'm using boninstagramcarouse mdoule in prestashop 1.6.1.18 shop in BO configuration , when selecting Get Feeds by "tags" , in the website front , all feeds are displayed but when choosing Get Feeds by "user" nothing is displayed here is the function responsible for rendering feeds : public function getInstagramContent() { if (Configuration::get('BONINSTAGRAMCAROUSEL_TYPE') == 'tagged' && Configuration::get('BONINSTAGRAMCAROUSEL_TAG') != '') { $insta_params = Tools::jsonDecode(Tools::file_get_contents('https://www.instagram.com/explore/tags/' . Configuration::get('BONINSTAGRAMCAROUSEL_TAG') . '/?__a=1'), true); $insta_array = $insta_params['graphql']['hashtag']['edge_hashtag_to_media']['edges']; $res = array(); foreach ($insta_array as $name) { $res[] = $name["node"]; } return $res; } else if (Configuration::get('BONINSTAGRAMCAROUSEL_TYPE') == 'user' && Configuration::get('BONINSTAGRAMCAROUSEL_USERID') != '') { $insta_params = Tools::file_get_contents('https://www.instagram.com/' . Configuration::get('BONINSTAGRAMCAROUSEL_USERID') . '/'); $shards = explode('window._sharedData = ', $insta_params); $insta_json = explode(';</script>', $shards[1]); $insta_arra = json_decode($insta_json[0], TRUE); $insta_array = $insta_arra['entry_data']['ProfilePage'][0]['graphql']['user']['edge_owner_to_timeline_media']["edges"]; $res = array(); foreach ($insta_array as $name) { $res[] = $name["node"]; } return $res; } return ''; } i found that the problem is discussed here https://github.com/instabot-py/instabot.py/issues/1155 but it is ot resolved for me any idea? Link to comment Share on other sites More sharing options...
Prestashop Addict Posted March 2, 2020 Share Posted March 2, 2020 Instagram changed few months ago the API. You need an other Instagram module like this free one. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now