Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Token works within Codepen but not in website #6

Closed
mikelivingston04 opened this issue Jul 29, 2020 · 2 comments
Closed

Token works within Codepen but not in website #6

mikelivingston04 opened this issue Jul 29, 2020 · 2 comments

Comments

@mikelivingston04
Copy link

mikelivingston04 commented Jul 29, 2020

Here is my HTML file:

`

<script src="https://ig.instant-tokens.com/users/ad0c3b27-7113-4245-b4ea-92700898dbbb/instagram/17841414290785692/token.js?userSecret=gpqqbdi5ga8z0hmein70f"></script> <script> $(function(){ console.log("insta token: " + InstagramToken); var feed = new Instafeed ({ accessToken: InstagramToken }); feed.run(); }); </script>

`

The console within my browser prints out:
Uncaught Error: Error from Instagram: The access_token provided is invalid. at Instafeed.parse (main.ec9ab4606cecc5cd0626720852f7df80.js:3422) at popular?access_token=IGQVJXd09hNHpkc2tsazhwb3ZAkeWU1QWx2UktfdDdKN3VMT2lOSlpUVGxPRU1PSVBuZATVTODBWMWJJeVVnYmtVclVMVkU2OXlCOHNsWGtDNHhUYS1wQk1FSHVfeDdmU1oyUXhtZAktn&callback=instafeedCache69931a98e1554ff3.parse:1

Both the JS file and the JSON response work fine within code pen from the examples. The token just doesn't seem to work within my HTML file. I must be missing something

@codingbadger
Copy link
Owner

I think you are using instafeed.js v1.4.1 - you need to use v2.0.0-rc2

See the releases here https://www.npmjs.com/package/instafeed.js the v1 release is marked as latest as v2 is not officially released.

@stevenschobert
Copy link

@codingbadger sorry, I plan on making the v2 release official — just have been busy!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants