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
Option 'accessToken' is not needed when getting user feed #242
Comments
This worked for me also. |
I tried commenting those lines, but still get the same error. ANy help? |
@knauso I've created a fork and branch that has both AMD support added and accessToken check disabled, maybe it is helpful for you too? https://github.com/SC5/instafeed.js/tree/amd-access |
Great! So i can just grab the minimized js file and everything will work? On Wednesday, June 3, 2015, Juha Mustonen notifications@github.com wrote:
Ognjen Knaus This e-mail is confidential and may also contain privileged information. If |
Well, it did work for me :) In a case it doesn't, maybe we're initializing it differently. |
Thanks! Will try it in the morning :) On Wednesday, June 3, 2015, Juha Mustonen notifications@github.com wrote:
Ognjen Knaus This e-mail is confidential and may also contain privileged information. If |
It is still giving me Unexpected token I am initializing it like this, actually if I understand well, accessToken can be removed, but not working with or without it :
|
"Instagram user's recent feed can be fetched without accessToken if clientId is provided" You would still need clientId, if you removed accessToken |
Yes, I left the userID |
Not userID but clientID. It's a different thing. |
So is this the proper setting?
I am using this js: |
@knauso You need both userId and clientId: var userFeed = new Instafeed({
get: 'user',
// Instagram user id you want to list images from
userId: 1549781111,
// Your client id registered in Instagram developer site
clientId: '2e5a3f8cc1754723a81d216f3d302a69'
}); |
Working! :) thanks so much for the help. really appreciate it, you are da man! |
Hi,
|
It's work on jsfiddle.net but not in local... |
@samisiuvatti Hi, does this still work as of now? Doing this returns page Not Found for me: https://api.instagram.com/v1/users/{user-id}/media/recent/?client_id=YOUR-CLIENT_ID |
@wleofeng Yes it should still work. That url is not supposed to work as it's just Instagram's API endpoint. You may get acquainted to that part of API here: https://www.instagram.com/developer/endpoints/users/#get_users_media_recent |
@wleofeng This seems to be fixed in the new releases. |
@juhamust Hi! I've been using your version of this plugin(without acess token) for some time. |
@fabioguina based on quick look into Instagram API documentation, they've introduced a new review policy that might have something to do with it. https://www.instagram.com/developer/endpoints/
Also, the API might have changed itself. |
@juhamust Thanks for the reply. |
This returned 400 for me:
According to the docs, it requires an Access Token. |
Instagram user's recent feed can be fetched without accessToken if clientId is provided, but your script throws an error if accessToken is not provided. I commented rows 225-227 and it works perfectly ( https://github.com/stevenschobert/instafeed.js/blob/master/instafeed.js ).
https://api.instagram.com/v1/users/{user-id}/media/recent/?client_id=YOUR-CLIENT_ID
The text was updated successfully, but these errors were encountered: