Hello!
I can authenticate with v3, but v3 won't allow me to import TV shows into custom lists (I can only import movies). I've tried to authenticate with v4, as I see in the documentation that allows mixed lists (TV show imports), but I run into problem.
I successfully generate and receive a v4 {request_token}, but when I visit (or my script visits) https://www.themoviedb.org/authenticate/{request_token}, I get the message:
Invalid Request Token
The access token you have submitted is invalid. Most of the time, this is because the token has expired...
This happens if i wait 1/2 a second, 5 seconds, 10 seconds, etc. to authenticate the response token. I've confirmed my server time is correct, the request token is not reused, the token is not expired, the v4 read access token is correct, and even tried this with no redirect_to.
Any help would be greatly appreciated; thanks in advance. :)
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by spacelucas
on May 17, 2025 at 8:31 PM
Got it! Sorry for the bother. Wasn't using the correct approval URL (v4 documentation is https://www.themoviedb.org/auth/access?request_token={request_token}). Not sure where I got the /authenticate/ rather than /auth/ path structure.
So glad I'm only a weekend coder, lol. All good now. :)