Snapchat / express-4.x-passport-snapchat-example

Express 4.x app using Passport for authorization with Snapchat.
The Unlicense
42 stars 16 forks source link

"Something Went Wrong" Error Message in OAuth Flow #25

Open camille-le opened 5 months ago

camille-le commented 5 months ago

Hi there, I ran into this error a few times when trying to implement this. I think it would be helpful to add a few troubleshooting steps to the README so other folks can debug the same thing.

OAuth Flow

1) To test with my account, I needed to add my username as a Demo User. This was done by accessing the Developer Portal, then clicking Global > Setup for my application and scrolling down to "Demo Users"

DemoUser

2) After, I selected Initial Version for my application. There I needed to input the URI that is used in this repo's sample code. I also needed to make sure both Display Name and Bitmoji Avatar were selected in order to access this data successfully:

URI

In short, I am passing in the callbackURL: 'http://localhost:3000/login/snapchat/callback' as a URI for OAuth. https://github.com/Snapchat/express-4.x-passport-snapchat-example/blob/14126e97c46f984e4d2aec5834eca9de36d8dfeb/server.js#L23C1-L24C1

From completing these steps, I was able to complete this tutorial.

EfrenAlmanzalamas commented 3 months ago

Here are a few things to verify in the app created in the Snapchat account: it must be approved by submitting the required information, or if it is not, you must use demo users who should be guest members of your business account, have accepted the invitation, and have access to the app created in the Snapchat developer kit.