genxbe / kirby3-instagram Goto Github PK
View Code? Open in Web Editor NEWFetch instagram photos without the need for app aproval
License: MIT License
Fetch instagram photos without the need for app aproval
License: MIT License
When tested on local everything seems to work perfectly. However, when placed on a testing server, the Instagram credentials are not saved in the site.txt file, only the refreshed date:
Instagramauth:
----
Instagramtoken:
----
Instagramtokenrefreshed: 2022-08-08
The test server is running the same 3.7.0.1 Kirby instance and is running on PHP 8.1. Any idea why this is not working?
Missing composer.json version
Hi,
Sorry me again!
I am getting the following error when running the cron job to fetch the instagram posts:
Whoops\Exception\ErrorException: unlink(/home/xxxxxx/public_html/assets/instagram/media17860440146772998.jpg): No such file or directory in file /home/xxxxxx/public_html/site/plugins/kirby3-instagram/classes/Instagram.php on line 188
Stack trace:
1. Whoops\Exception\ErrorException->() /home/xxxxxx/public_html/site/plugins/kirby3-instagram/classes/Instagram.php:188
2. unlink() /home/xxxxxx/public_html/site/plugins/kirby3-instagram/classes/Instagram.php:188
3. X\Instagram->fetch() /home/xxxxxx/public_html/site/plugins/kirby3-instagram/fetch.php:27
It looks like there is a slash missing on the url between media
and the filename. Oddly I didn't have this issue when running the site locally, it is only cropping up on the live site.
If you have any thoughts, or ideas of things to try, that would be great.
Thanks!
Hello and thank you for taking the time to build this Instagram plugin for Kirby. I'm trying to get this up and running. There are lots of hoops to jump though. Your instructions (under 'Authenticate the instagram user and request User token') provides a link to a Notion page, but I cannot access it. I get a message that states, "You do not have access to GeNx. Please contact an admin to add you as a member." Please advise.
This has been a relief to find. Where can we send a tip?
Hi,
I think everything is working correctly with the plugin, I have done a test fetch which worked. However, when the authentication triggered in Kirby's panel was completed I got the following error:
Whoops\Exception\ErrorException thrown with message "Cms\Site::panelUrl() has been deprecated and will be removed in Kirby 3.8.0. Use $site->panel()->url() instead."
Stacktrace:
#9 Whoops\Exception\ErrorException in /home/***/dev/kirby/src/Cms/Helpers.php:29
#8 trigger_error in /home/***/dev/kirby/src/Cms/Helpers.php:29
#7 Kirby\Cms\Helpers:deprecated in /home/***/dev/kirby/src/Cms/Site.php:696
#6 Kirby\Cms\Site:panelUrl in /home/***/dev/site/plugins/kirby3-instagram/classes/Instagram.php:86
#5 X\Instagram:getToken in /home/***/dev/site/plugins/kirby3-instagram/index.php:21
#4 Kirby\Http\Route:{closure} in [internal]:0
#3 Closure:call in /home/***/dev/kirby/src/Http/Router.php:131
#2 Kirby\Http\Router:call in /home/***/dev/kirby/src/Cms/App.php:337
#1 Kirby\Cms\App:call in /home/***/dev/kirby/src/Cms/App.php:1256
#0 Kirby\Cms\App:render in /home/***/dev/index.php:5
I am running Kirby 3.7.1
After upgrading to Kirby 4 I have a problem with the Kirby3-Instagram Plugin by @genxbe:
Error: Undefined constant "X\DS" in /var/www/virtual/peleke7/peleke.de/site/plugins/kirby3-instagram/classes/Instagram.php:17
Stack trace:
#0 /var/www/virtual/peleke7/peleke.de/site/plugins/kirby3-instagram/fetch.php(27): X\Instagram->__construct()
#1 {main}
Error: Undefined constant "X\DS" in file /var/www/virtual/peleke7/peleke.de/site/plugins/kirby3-instagram/classes/Instagram.php on line 17
Stack trace:
1. Error->() /var/www/virtual/peleke7/peleke.de/site/plugins/kirby3-instagram/classes/Instagram.php:17
2. X\Instagram->__construct() /var/www/virtual/peleke7/peleke.de/site/plugins/kirby3-instagram/fetch.php:27
How to solve it?
I have just installed and followed your plugin instructions but in the blueprint field I see only the message "No fields yet".
I am using Kirby 3.6.0 alpha. Could that be the problem?
Hoping you can help me through some setup of this plugin (which I greatly appreciate you taking the time to build). With so many hoops to jump though I'd like to confirm a few things...
Your instructions state, "find a place to add the instagramLink blueprint". What does that mean? Is this just referring to me adding "linkInstagram" to one of my page blueprints. For example, I want to feature a Instagram feed on my home page so I'll add this to my home.yml file. Please confirm.
I have been using this plugin including a cronjob for several months without any issues but since Wednesday I received this error message from the cronjob:
Exception: There's a problem accessing Instagram. (API access disrupted. Go to the App Dashboard and complete Data Use Checkup.) in file /var/www/virtual/peleke7/peleke.de/site/plugins/kirby3-instagram/classes/Instagram.php on line 144
Stack trace:
- Exception->() /var/www/virtual/peleke7/peleke.de/site/plugins/kirby3-instagram/classes/Instagram.php:144
- X\Instagram->fetch() /var/www/virtual/peleke7/peleke.de/site/plugins/kirby3-instagram/fetch.php:27
I then clicked on the panel link to recreate the link and allowed access as months before, also without any issues. But when the next cronjob got triggered I received this error message:
Exception: Instagram token is required. in file /var/www/virtual/peleke7/peleke.de/site/plugins/kirby3-instagram/fetch.php on line 24
Stack trace:
- Exception->() /var/www/virtual/peleke7/peleke.de/site/plugins/kirby3-instagram/fetch.php:24
How could I debug/fix it?
Maybe related to #7?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.