Okay
  Public Ticket #2128883
Instagram plugin not working
Closed

Comments

  •  1
    Keith started the conversation

    Instagram plugin was working fine until two days ago and it started returning an error: 


    Error type: Instagram has returned invalid data.Please double check that the username you are using exists. Or contact us if you are still having troubles.

  •  240
    Elena replied

    Hello Keith,

    We are aware of the issue. It seems that Instagram has recently blocked requests from shared hosts IPs. I've seen that other Instagram plugins have been currently experiencing the same issue. We are currently trying to figure out what's happening and how to fix that. 

    Thank you for your patience.

    Cheers, P.

  •  1
    Keith replied

    Thanks. I made it a full screen block for now with a link to Instagram until the issue is sorted out.

  •  240
    Elena replied

    Hello Keith,

    We have just released a new theme version that you can download from ThemeForest (v1.4.7). Inside the package you will find a new plugin for users having a issue with Instagram, it's named hemma-instagram-api.zip

    So here are steps:

    1. Update theme to 1.4.7

    2. Install the new Hemma Instagram Api plugin (you can find a file called hemma-instagram-api.zip in the "Bundled plugins" folder)

    3. Uninstall the Hemma Instagram plugin (it's not needed anymore)

    4. Now you need an Instagram Access Token. Try googling to find out how to get that or just read these posts:
    https://docs.oceanwp.org/article/487-how-to-get-instagram-access-token
    https://elfsight.com/blog/2016/05/how-to-get-instagram-access-token/

    5. Go to Settings -> Instagram Settings and paste there your Access Token.

    That should be enoughsmile.png

    Cheers, P.

  •  1
    Keith replied

    Sorry I've followed both these websites' instructions to the T several times. They don't generate the proper access token. Both return the error that:

    {"error_type": "OAuthForbiddenException", "code": 403, "error_message": "You are not a sandbox user of this client"}


  •  240
    Elena replied

    Hey Keith,

    Maybe you are trying to get the feed from a different Instagram account. Unfortunately, with the new Instagram API you can display your own feed but not those of other users, in case you are building a site for a client, you should let him generate the access token. Hope that makes sensesmile.png

    Cheers, P.

  •  240
    Elena replied

    If that's not your case, you may need to re-check your Instagram settings, please read: https://stackoverflow.com/questions/39632333/you-are-not-a-sandbox-user-of-this-client-error-codeigniter-instagram-api

    If you're still having issues, please re-open this ticket.

    Cheers, P.

  •  1
    Keith replied

    It’s for my account but I have multiples. I wonder if that is the issue. I made the client using the account I was intending to display. 

    ¯\_(ツ)_/¯ 

  •  240
    Elena replied

    Not sure to understand if you resolved the issue...

  •  1
    Keith replied

    I finally got it to work using the https://elfsight.com/blog/2016/05/how-to-get-instagram-access-token/ website. I think the factor may have been since I have two IG accounts linked to the same user. I needed to sign out of both and sign in only under the one creating the access key. Last question I had on IG integration, is there a way to have it dynamically recognize based on the device how many images to show? For example, on desktop computers it would show 7 but on mobile it would only show 3?

  •  240
    Elena replied

    Hi Keith,

    Glad you resolved that!

    Unfortunately what you are asking require a considerable number of changes in the plugin and I am afraid we are unable to provide support, I am sorry.

    What you can do is a workaround: parse 7 pictures from Instagram and hide 4 of them via CSS below a specific breakpointsmile.png

    Hope that helped.

    Cheers, P.

  • oliverliebscher replied

    Hi There, 

    I've followed all steps and it seems to be working but it doesn't pull through the images. Do you know where I might have gone wrong? 


    http://thejensenpottspoint.com


    Cheers
    Jake

  •  240
    Elena replied

    For some reason images are not loading, can you please reply with a private answer (enable the PRIVATE switch) and leave your WP credentials?

  • oliverliebscher replied

    Hi There, 

    I do not have the option to enable a private switch. Image attached.


    Cheers

  •  240
    Elena replied

    Weird... send an email to [email protected]smile.png

  •  240
    Elena replied

    Hi Keith,

    I've inspect your site and it seems that issue is caused by Smush plugin. Lazy Load feature prevents image from loading correctly, so you can turn off the whole feature or disable it only for a specific page. 

    5512024992.png


    Hope that helpedsmile.png

    Cheers, P.

  •  1
    Keith replied

    This error has returned. Is there something new I should be aware of?


  •  240
    Elena replied

    Hello Keith,

    Please re-check all steps I mentioned below and ensure that the former version of Instagram plugin is inactive.

    If you're still having issues, please provide your WP credentials in a private message so I can have a look.

    Cheers, P.

  •  1
    Keith replied

    I'm not really sure what's happening. I followed the steps again on Elf. It gave me a new access token. I pasted that into the Instagram API plugin and I'm still getting that error. Should I go to private?

  •  240
    Elena replied

    Yes please. Send me credentials. Thanks.

  •   Keith replied privately
  •  240
    Elena replied

    Hey Keith,

    You shouldn't never change the parent theme files! You have Hemma 1.4.7 installed but some files don't match with the 1.4.7 that I am distributing. Please see:

    This is yours:

    8219853944.png


    And this is mine:

    8414688793.png


    At this point, you should delete your parent theme and upload the version that I am releasing on ThemeForest. You can temporary activate a different theme, delete your Hemma parent theme (no need to remove the child theme), upload and activate the Hemma theme that you've downloaded from ThemeForest. If you do like that, nothing should break.

    Cheers, P.

  •  240
    Elena replied

    IMPORTANT: Please read this thread from the beginning. If you are having troubles witht he access token generation, please try this tool to create one: https://www.weareunderground.com/pages/instagram

    In case you are still having troubles, open a new ticket.

    Thanks all!

  •  240
    Elena replied

    Update July 1, 2020

    As of June 29th, 2020, the Instagram platform has deprecated its API.

    You don't need to read the full thread, please read the paragraph "How to fix the Instagram feed" at this link: https://opendept.ticksy.com/article/9776/