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

It started #571

Closed
chasevorn opened this issue Apr 5, 2018 · 14 comments
Closed

It started #571

chasevorn opened this issue Apr 5, 2018 · 14 comments
Labels
Instagram API deprecation Issues about or caused by IG's API changes. stale Issues that have been inactive for 90 days or more

Comments

@chasevorn
Copy link

2018-04-05_15-19-36

This wasn't supposed to happen until Dec 11, 2018 according to their website: https://developers.facebook.com/blog/post/2018/01/30/instagram-graph-api-updates/

Are there any other solutions for this?

@benjamin-hull
Copy link
Collaborator

There have been some "effective immediately" deprecations made today. See #345

Which endpoint were you requesting from?

@georanma
Copy link

georanma commented Apr 5, 2018

@chasevorn It depends on what endpoints you need to use. This should be a pretty easy library overhaul for the most part. I was able to update my agency's usage of the library at the user endpoint with small changes.

line 259 of instafeed.js
if (!this.options.userId) { throw new Error("No user specified. Use the 'userId' option."); } endpoint = "users/self/media/recent"; break;

This should fix any queries to the user endpoint to get the most recent posts. This was only tested for our use case, and not for all library options.

@chasevorn
Copy link
Author

/v1/users/USERID/media/recent

I have this js set up
var feed = new Instafeed({ get: 'user', userId: USERID, accessToken: 'TOKEN', limit: '8', template: '<a href="{{link}}" target="_new" class="instapics"><img src="{{image}}" /></a>' }); feed.run();

@georanma
Copy link

georanma commented Apr 5, 2018

@chasevorn How are you loading up the library?

@ckhatton
Copy link

ckhatton commented Apr 5, 2018

@georanma THANK YOU!! bitmoji

@tatof
Copy link

tatof commented Apr 5, 2018

@georanma your code gets my own instagram feed not the one from the customer that i'm building the feed for :(

var feed = new Instafeed({ get: 'user', userId: '5888308871', clientId: '***************************', accessToken: '************************************', resolution: 'standard_resolution', template: '<a href="{{link}}" target="_blank" style="background-image: url({{image}})"></a>', limit: '6' });

@georanma
Copy link

georanma commented Apr 5, 2018

@tatof you will need to update to using an access token generated from your client's instagram account. It is no longer possible to pull another user's instagram feed via their userId.

https://www.instagram.com/developer/endpoints/users/

@chasevorn
Copy link
Author

This got solved for me only by creating an app and generating a new access token from my client account and not from mine.

@tatof
Copy link

tatof commented Apr 6, 2018

I see thanks! :)

@georanma
Copy link

georanma commented Apr 6, 2018

@tatof np.

@chasevorn yes, see my previous response.

@rfearing
Copy link

@chasevorn Thanks for your fix. Since @stevenschobert doesn't seem to be keeping this active at the moment I created a fork here (at least while InstaFeed is inactive). It includes your fix which solved the issue I was having of Uncaught Error: Error from Instagram: This endpoint has been retired

@stevenschobert
Copy link
Owner

@rfearing Hey there! Thanks for the contribution!

For what it's worth -- I am still here, I've just been extremely busy with other projects, so that's why many of the PRs haven't been merged or deployed yet. I'm happy to see other people sharing knowledge in the issues though, which is why I've left many issues open.

Given Instagram's decision to sunset their API, I'm not sure yet what the future of this library will be, but I'll participate as much as I can!

@rfearing
Copy link

@stevenschobert That totally makes sense! I hope my comment didn't come off as rude at ll, as I definitely appreciate the plugin and your work!

Thanks again!

@benjamin-hull benjamin-hull added the Instagram API deprecation Issues about or caused by IG's API changes. label May 15, 2018
@MeK-KeM MeK-KeM mentioned this issue Jun 27, 2018
@stale
Copy link

stale bot commented Sep 7, 2018

This issue has been automatically marked as stale because it hasn't had new comments in the last 3 months. It will be closed if no further activity occurs. If you still need assistance with this issue, or believe it shouldn't be closed, please respond with a new comment to let us know.
Thank you all for your contributions.

@stale stale bot added the stale Issues that have been inactive for 90 days or more label Sep 7, 2018
@stale stale bot closed this as completed Sep 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Instagram API deprecation Issues about or caused by IG's API changes. stale Issues that have been inactive for 90 days or more
Projects
None yet
Development

No branches or pull requests

7 participants