Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • 1080px images are not yet officially supported via the instagram API, however you can access them by replacing the size in the image url.

    A quick hack for this plugin:

    wp-content/plugins/dsgnwrks-instagram-importer/dsgnwrks-instagram-importer.php

    around line 1116 you see this:

    $tmp = download_url( $media_url );

    right before this line, insert

    $media_url = str_replace( 's640x640', 's1080x1080', $media_url);

    but be aware that this change will be reverted the next time you update the plugin.

    maxhaesslein

    (@maxhaesslein)

    Here is a fast and very dirty workaround:

    open wp-contents/plugins/dsgnwrks-instagram-importer/dsgnwrks-instagram-importer.php

    (make a backup of this file!)

    go to

    public function import( $userid = false ) {

    scroll down until you find

    // Save the date/time to notify users of last import time

    (this should be around line 556)

    just before this line, add:

    else{
    	// set next url to continue importing
    	if( !empty( $messages['next_url'] ) ) {
    		set_transient( 'get_option', $messages['next_url'] );
    		$notices['next_url'] = $messages['next_url'];
    		return $notices;
    	}
    }

    now import your images. The importer will hit the date set or will timeout. Now hit ‘import’ again — this time it will take some time until the importer starts importing again, because it will loop over every image already imported. But eventually it will import your older posts.

    After you imported all old posts, remove the lines again (or restore your backup of the dsgnwrks-instagram-importer.php file) because I don’t know if this code has any effect on the cron importer.

Viewing 2 replies - 1 through 2 (of 2 total)