instagram icon indicating copy to clipboard operation
instagram copied to clipboard

Default limit of 25 images

Open timofo opened this issue 1 year ago • 0 comments

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.

timofo avatar Mar 13 '23 12:03 timofo