I’m using the Tweepy library to implement ‘Signin with Twitter’ on my website.
As shown in the Tweepy examples, I’m doing:
callback_url = "http://127.0.1.1:8080/social_login/complete/"
auth = tweepy.OAuthHandler(
config.twitter_consumer_key,
config.twitter_consumer_secret,
callback_url
)
try:
redirect_url = auth.get_authorization_url()
except tweepy.TweepError, e:
self.redirect_to('error', {'message': e})
return
request_token = models.OAuthToken(
token_key = auth.request_token.key,
token_secret = auth.request_token.secret
)
request_token.put()
When I run this code, I get this error (for the tweepy.TweepError): HTTP Error 404: Not Found
I tried with the consumer keys and secrets from two different accounts. I don’t really understand why it’s not working…
Does anyone has any idea? Thanks