Open camille-le opened 5 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.
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.
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 clickingGlobal > Setup
for my application and scrolling down to "Demo Users"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
andBitmoji Avatar
were selected in order to access this data successfully: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-L24C1From completing these steps, I was able to complete this tutorial.