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

Unexpected token ':'. Parse error. and Couldn't Find Variable X #4

Closed
jimzippy opened this issue Jul 21, 2020 · 4 comments
Closed

Unexpected token ':'. Parse error. and Couldn't Find Variable X #4

jimzippy opened this issue Jul 21, 2020 · 4 comments

Comments

@jimzippy
Copy link

Receiving an error "Unexpected token ':'. Parse error." and "Couldn't Find Variable" when adding dynamic "Token" variable to instafeed.js from Instant Tokens Dynamic User URL.

Instagram Tokens Source Returns (Which Errors):
{"Token":"auto-generated-instagram-token-here"}

Fix Required:
const Token = 'auto-generated-instagram-token-here';

Based on what Steven Schobert is using for the instafeed.js Basic Display API Demo here: https://codepen.io/companionstudio/pen/rNVPGOz

@codingbadger
Copy link
Owner

I think you are asking for Instant Tokens to set a JS variable instead of returning a JSON repsonse?

If correct, this is has been completed under the issue #2

@jimzippy
Copy link
Author

Yes that's correct, when following the current "out of the box" instructions from the instafeed.js website.

I just used the Instant Tokens JSON method you supply via your WIKI and all worked fine. I think instafeed.js needs to update its instructions as there was no reference that using JSON method was needed. It simply states to include the link to the token.

@codingbadger
Copy link
Owner

@jimzippy This would be something you should raise with the guys who look after instafeed.js

InstantTokens did have instafeed.js in mind (as it was the library I was using at the time) but I am not directly involved with the project.

Thanks!

@jimzippy
Copy link
Author

@codingbadger, I will do and thank you. Just FYI on the Instant Tokens website its not showing the "Instagram Username" on the authorisations page at the moment. All other details are displayed.

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

2 participants