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

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

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

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

    ¯\_(ツ)_/¯ 

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

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

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

  •  136
    Pasquale replied

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

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