Instagram feed not working

1 reply · opened Mar 9, 2019

Jjamin1980Mar 9, 2019

Hi

I have gone through the documentation and found my instagram user ID I have now swapped this out from the example code.

But now no images are being pulled through?

div id="instagram-photos" class="instagram-photos masonry-thumbs grid-4" data-user="3016831624" data-count="4" data-type="user"></div>

Can somebody please advise what to do?

Thanks,

Ben

SSemicolon WebSTAFFMar 10, 2019

Hello,

  1. Go to https://www.instagram.com/developer/ > Manage Clients > Register a New Client > Create a New Client (Add http://localhost/ in the Redirect URL) > Uncheck: Disable implicit OAuth (In Security Tab)

  2. Go to this URL: https://api.instagram.com/oauth/authorize/?client_id=CLIENT-ID&redirect_uri=REDIRECT-URI&response_type=token and make sure that you replace the CLIENT-ID and REDIRECT-URI in the URL with their Actual Values. This will fetch you your Access Token.

  3. Open the js/functions.js File and find the following code:

SEMICOLON.widget.instagramPhotos( '5834720953.1677ed0.a0a26ba4c90845f9a844d64c316bf77a', '8e000fefe3024b2ead6a50ff005bf036' );

then replace 5834720953.1677ed0.a0a26ba4c90845f9a844d64c316bf77a with the newly generated Access Token in the step above and replace 8e000fefe3024b2ead6a50ff005bf036 with the Client ID of your Newly Created Client.

  1. Then you can simply add your User ID in the data-user Attribute and the data-type="user" Attribute should always be User since Instagram has blocked Access for other types of Content.

This will definitely work fine. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard