in2code-de / instagram

Show instagram feed without API in a TYPO3 extension
https://www.in2code.de/agentur/typo3-extensions/instagram/
19 stars 13 forks source link

Default limit of 25 images #31

Open timofo opened 1 year ago

timofo commented 1 year ago

By default instagram has a limit of 25 images when you use the API. You can set the limit in the plugin for the frontend output up to 100, but there are never more than 25 images to display. Because the import is limited by default to 25.

In the instagramRepository.php, you can set f.e. a limit which is defined by TypoScript Constant or Extension Settings.

        $url = 'https://graph.instagram.com/' . $tokenRecord['user_id'] . '/media/'
            . '?fields=media,caption,media_type,media_url,permalink,thumbnail_url,timestamp,username,'
            . 'children&access_token=' . $tokenRecord['token'] . '&limit=100';

With the limit parameter you can import more then 25. Up to 100.