PWesterdale / KirbyGram

Instagram Plugin for Kirby CMS
22 stars 3 forks source link

Kirbygram Dev API Stopped Working! Help! #26

Open luxlogica opened 8 years ago

luxlogica commented 8 years ago

Help!

It seems the 'Kirbygram Dev API' stopped working: trying to setup kirbygram by visiting the API page (and entering Instagram credentials) produces the following JSON:

{"code": 403, "error_type": "OAuthForbiddenException", "error_message": "You are not a sandbox user of this client"}

But even worse: all my existing Kirbygram installations have simply STOPPED WORKING! Where the instagram posts used to show, now I see this on the page:

Notice: Undefined property: stdClass::$pagination in /[...]/site/plugins/kirbygram/lib/Instagram/Query.php on line 74

Notice: Undefined property: stdClass::$data in /[...]/site/plugins/kirbygram/lib/Instagram/Query.php on line 43
PWesterdale commented 8 years ago

Please see the new readme.md.

I can only apologise as Instagram has seen fit to stop this type of application being able to use the service.

luxlogica commented 8 years ago

@PWesterdale This is terrible news!!! Is there an alternative solution?

PWesterdale commented 8 years ago

You could try creating your own instagram app and trying to get through the approval process but it's pretty damning:

Don't use the Instagram API to simply display User Content, import or backup content, or manage Instagram relationships, without our prior permission. https://www.instagram.com/about/legal/terms/api/

Pretty much exactly what API's used to be for is no longer a valid use case apparently.

luxlogica commented 8 years ago

I have to deliver a site tomorrow, which is supposed to have an Instagram gallery showing the company's last posts... I cannot find a solution anywhere.

PWesterdale commented 8 years ago

http://instafeedjs.com/

luxlogica commented 8 years ago

@PWesterdale Would it be possible to continue using Kirbygram, if users get their own CLIENT_ID - and perhaps enter it in the 'config' file? Would this require a huge change in Kirbygram's codebase?

This discussion in the 'instafeed' github issues page might be helpful:

https://github.com/stevenschobert/instafeed.js/issues/408

uxgenesis commented 8 years ago

There are now some issues with InstafeedJS too, but it depends on what content you're trying to get. Based on User ID is still possible I think.

luxlogica commented 8 years ago

I'm going to try instafeed.js - all I need is the user's x number of latest posts, so if this still works, I should be covered. The problem is, that this is obviously a 'patch solution', and I don't know what a "permanent" solution would be...