Support » Plugin: DsgnWrks Instagram Importer » No new Instagram shots to import

  • Hi,

    I’m having the “No new Instagram shots to import” issue. Given the amount of images I am importing, and as per your Install instructions, I tried first importing images from May/2017, that worked fine. Then I tried importing from a month before that, and I get “No new Instagram shots to import”. Tried deleting all posts, media, empty bin, but to no avail.

    Any ideas what might go wrong?
    Thanks!
    Gergo

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • I am having this exact same issue. I would love to know how to reset this.

    avipushentertainment

    (@avipushentertainment)

    Same here, after installation it’s not working. But after connect with Instagram correctly and save all settings. Then right-click->open in a new tab/window on the import button, and it works fine for me.

    Thanks!

    The reason this plugin no longer works has to do with Instagram. In April of 2018, they updated their api in two ways that causes this plugin to break. The first is that they have lowered the allowed number of api calls from 5000/hour to 200/hour. The second (and more important) is that they have depreciated the api url that the plugin uses to grab the information from Instagram.

    If you open up the main plugin file in /wp-content/plugins/dsgnwrks-instagram-importer/dsgnwrks-instagram-importer.php and look on (or around) line 574, there should be line that creates the api_url variable. It should look something like the following:

    $this->api_url = isset( $this->next_url ) && $this->next_url ? $this->next_url : $this->instagram_api . $this->settings->user_option( 'id' ) .'/self/media/recent?access_token='. $this->settings->user_option( 'access_token' ) .'&count=2';

    If you replace that line with the following, the plugin should start working again.

    $this->api_url = isset( $this->next_url ) && $this->next_url ? $this->next_url : 'https://api.instagram.com/v1/users/self/media/recent/?access_token='. $this->settings->user_option( 'access_token' );

    I normally would advise against modifying a plugins code, but since this one hasn’t been updated in over a year, I think it will probably be okay. If they do update it, it will most likely include a fix for this, but in the meantime, this should work.

    If you’re still having problems, you might need go into the plugin settings and change the date in which it is starting to pull from to one that is closer to todays date. The 200/hr request limit is most likely causing the plugin to fail. If you might also be hitting the limit if you have multiple version of the site (such as a testing server, live server, and any local development version of the site) hooked up to the same Instagram account and they are all set to pull every hour.

    Thanks @jaredmbstudios, this update works!!

    I think I will fork this plugin and do some more updates like:
    – filename the pic is saved in media
    – add category to image post

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.