in2code-de / instagram

Show instagram feed without API in a TYPO3 extension

Home Page:https://www.in2code.de/agentur/typo3-extensions/instagram/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Default limit of 25 images

timofo opened this issue · comments

commented

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.