codefog / contao-instagram

Contao extension that displays Instagram feed on your website
MIT License
11 stars 12 forks source link

Module not working anymore because instagram changed the api calls #6

Closed kaipk closed 6 years ago

kaipk commented 6 years ago

instagram changed the api and now the module is not working anymore. see -> https://www.instagram.com/developer/changelog/ - some endpoints are deprecated.

ps: your module is great

i think you can fix it like that

in InstagramModule.php line 91

....

 /*if (($userId = $this->fetchUserId()) === null) {
            return [];
  }*/

//fetchUserId not neccecary now, because instagram allows only self data

$response = $this->sendRequest(sprintf('https://api.instagram.com/v1/users/self/media/recent', $userId), ['count' => $this->numberOfItems]);

.....

fritzmg commented 6 years ago

Did you test that fix? If yes, create a PR ;)

kaipk commented 6 years ago

yes, here is my pull request #7

qzminski commented 6 years ago

Thanks, closing this one in favor of #7 then.