Pinterest Error (403) When Authorizing Token
flameblue59 opened this issue · comments
Hi, I tried to authorize token by using this code
$code = $_GET['code'];
$token = $pinterest->auth->getOAuthToken($code);
But then, I receive this following error.
Fatal error: Uncaught DirkGroenen\Pinterest\Exceptions\PinterestException: Pinterest error (code: 403) with message: Forbidden in /home/admin/ocicio/botsector/vendor/dirkgroenen/pinterest-api-php/src/Pinterest/Transport/Request.php:227 Stack trace: #0 /home/admin/ocicio/botsector/vendor/dirkgroenen/pinterest-api-php/src/Pinterest/Transport/Request.php(98): DirkGroenen\Pinterest\Transport\Request->execute('POST', 'https://api.pin...', Array) #1 /home/admin/ocicio/botsector/vendor/dirkgroenen/pinterest-api-php/src/Pinterest/Auth/PinterestOAuth.php(143): DirkGroenen\Pinterest\Transport\Request->post('oauth/token', Array) #2 /home/admin/ocicio/botsector/index.php(15): DirkGroenen\Pinterest\Auth\PinterestOAuth->getOAuthToken('de30c50c9991abf...') #3 {main} thrown in /home/admin/ocicio/botsector/vendor/dirkgroenen/pinterest-api-php/src/Pinterest/Transport/Request.php on line 227
I have no idea but I have been following the documentation correctly. Hopefully, someone can help me. Thank you.