Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pinterest Authorization failed

Tags:

pinterest

We have problem with our prod pinterest application. After getting token:

"{"access_token": "AabcYgRUKiaBI45HYM72teXO6fZaFQoEhVxkxaREoN3SR-
A4zAAAAAA", "token_type": "bearer", "scope": ["read_public", 
"write_public", "read_private", "write_private", "read_relationships", 
"read_write_all"]}"

Then we try get user info https://api.pinterest.com/v1/me with this token Authorization: Bearer AabcYgRUKiaBI45HYM72teXO6fZaFQoEhVxkxaREoN3SR-A4zAAAAAA

and response

"{"status": "failure", "message": "Authorization failed.", "code": 3, 
"data": null}"

Application status is In development now. Could it been changed by pinterest? Our dev app works as expected.

like image 954
Alexander Avatar asked Jan 15 '18 16:01

Alexander


3 Answers

I got a response from Pinterest Help.

Feb 2, 09:32 PST

Thank you for providing all the information here. We're getting reports from multiple developers like yourself with the same issue. I'm going to be investigating further with our team and I'll let you know what we find!

No timeline right now on a fix, but I'll let you know when I get one.

like image 94
Jongin Oh Avatar answered Oct 22 '22 21:10

Jongin Oh


"You're receiving that error response because your app has been denied policy approval."

Now only pinterest partners can use publish api. Thanks for mentioning it in api doc and notification about changes.

like image 43
Alexander Avatar answered Oct 22 '22 21:10

Alexander


I had the same error and wasted a few days trying to figure out why.

I have 2 accounts, user A and B. A is the dev and B is not a collaborator. I think that's why. The document says only collaborators can use the app without being approved by Pinterest.

The returned error message is useless. If it says so, I wouldn't have to create this ticket and the document is also lacking in my opinion.

Also, if non-collaborator can't be authenticated, the access_token step should fail first.

enter image description here

enter image description here

like image 1
Bill Yan Avatar answered Oct 22 '22 19:10

Bill Yan