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

Instagram not working #321

Open
H1r1n opened this issue Apr 13, 2018 · 3 comments
Open

Instagram not working #321

H1r1n opened this issue Apr 13, 2018 · 3 comments

Comments

@H1r1n
Copy link

H1r1n commented Apr 13, 2018

The Instagram is not working because of the new API endpoints. Will there be a new fixed version for this?

@H1r1n
Copy link
Author

H1r1n commented Apr 13, 2018

To fix the Cannot read property 'id' of undefined issue for Instagram, because the user is undefined, change this line 487
url = Feed.instagram.api + 'users/search/?q=' + username + '&' + authTokenParams + '&count=1' + '&callback=?';

with this line:
url = Feed.instagram.api + 'users/self/?' + authTokenParams + '&count=1' + '&callback=?';

and the Instagram should work again

@wedot
Copy link

wedot commented Apr 26, 2018

I get an error from line 513.
var url = Feed.instagram.api + 'users/' + user.id + '/media/recent/?' + authTokenParams + '&' + 'count=' + options.instagram.limit + '&callback=?';

How can that be fixed?

@H1r1n
Copy link
Author

H1r1n commented Apr 30, 2018

As from the update of the Instagram API endpoints you can no longer get the posts from other users. So you should change the request URL to match YOUR user ( the one that you have Auth token from) .
Change the current one:
var url = Feed.instagram.api + 'users/' + user.id + '/media/recent/?' + authTokenParams + '&' + 'count=' + options.instagram.limit + '&callback=?';

With this:
var url = Feed.instagram.api + 'users/self/media/recent/?' + authTokenParams + '&' + 'count=' + options.instagram.limit + '&callback=?';

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

1 participant