Okay
  Public Ticket #2128883
Instagram plugin not working
Closed

Comments

  • 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.

    Attached files:  Screen Shot 2019-08-26 at 10.03.39 AM.png

  •  161
    Pasquale 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.

  • Keith replied

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

  •  161
    Pasquale 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.

  • 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"}
  •  161
    Pasquale 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.

  •  161
    Pasquale 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.

  • 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. 

    ¯\_(ツ)_/¯ 

  •  161
    Pasquale replied

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

  • 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?

  •  161
    Pasquale 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

  •  161
    Pasquale 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

    Attached files:  Screen Shot 2019-09-11 at 3.22.24 pm.png

  •  161
    Pasquale replied

    Weird... send an email to help@opendept.netsmile.png

  •  161
    Pasquale 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.

  • Keith replied

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

    Attached files:  Screen Shot 2019-11-22 at 12.05.22 AM.png

  •  161
    Pasquale 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.

  • 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?

    Attached files:  Screen Shot 2019-11-22 at 12.31.22 AM.png

  •  161
    Pasquale replied

    Yes please. Send me credentials. Thanks.

  •   Keith replied privately
  •  161
    Pasquale 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.

  •  161
    Pasquale 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!