Closed strandofgenius closed 1 year ago
Can you post the full stack trace please @strandofgenius.
It sounds like you're potentially hitting the same issue as https://github.com/scaramangagency/craftagram/issues/58#issuecomment-1346441963, so check your setup is correct in your FB app itself.
Here is what I'm getting in the logs.
2022-12-21 09:18:03 [-][65][39u1g9ea9m56rtj59j7jifiar0][error][yii\base\ErrorException:2] yii\base\ErrorException: Undefined property: stdClass::$expires_in in /sites/sve/vendor/scaramangagency/craftagram/src/services/CraftagramService.php:101
Stack trace:
#0 /sites/sve/vendor/craftcms/cms/src/web/ErrorHandler.php(87): yii\base\ErrorHandler->handleError(2, 'Undefined prope...', '/Users/../...', 101)
#1 /sites/sve/vendor/scaramangagency/craftagram/src/services/CraftagramService.php(101): craft\web\ErrorHandler->handleError(2, 'Undefined prope...', '/Users/../...', 101)
#2 /sites/sve/vendor/scaramangagency/craftagram/src/controllers/DefaultController.php(47): scaramangagency\craftagram\services\CraftagramService->refreshToken()
#3 [internal function]: scaramangagency\craftagram\controllers\DefaultController->actionRefreshToken()
#4 /sites/sve/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#5 /sites/sve/vendor/yiisoft/yii2/base/Controller.php(178): yii\base\InlineAction->runWithParams(Array)
#6 /sites/sve/vendor/yiisoft/yii2/base/Module.php(552): yii\base\Controller->runAction('refresh-token', Array)
#7 /sites/sve/vendor/craftcms/cms/src/web/Application.php(293): yii\base\Module->runAction('craftagram/defa...', Array)
#8 /sites/sve/vendor/craftcms/cms/src/web/Application.php(602): craft\web\Application->runAction('craftagram/defa...', Array)
#9 /sites/sve/vendor/craftcms/cms/src/web/Application.php(272): craft\web\Application->_processActionRequest(Object(craft\web\Request))
#10 /sites/sve/vendor/yiisoft/yii2/base/Application.php(384): craft\web\Application->handleRequest(Object(craft\web\Request))
#11 /sites/sve/web/index.php(22): yii\base\Application->run()
#12 /Users/../.composer/vendor/laravel/valet/server.php(234): require('/Users/../...')
#13 {main}
@strandofgenius Can you check your API access hasn't been disabled as per #58
Closed due to inactivity.
Hi there, We are getting the error
Undefined property: stdClass::$expires_in
when hitting the endpoint for refreshing tokens. Our cron job is still setup to refresh the token, but it seems as though it could be failing to refresh it.Any ideas as to what might be happening?
The site is on Craft 3.7.61 and the plugin is 1.4.5.