Reputation: 51
I was trying to authorize my app using tweepy. But when redirected to the authorization url, i see a Twitter page like this:
"Failed to grant access to the application. Try going back and logging in again."
and an error like this:
oauthlib.oauth2.rfc6749.errors.MissingCodeError: (missing_code)
Missing code parameter in response.
I'm using OAuth2.0;
oauth2_user_handler = tweepy.OAuth2UserHandler(
client_id=oauth_id,
redirect_uri=callback_url,
scope=["tweet.post", "tweet.read", "tweet.write", "users.read", "follows.read", "follows.write", "like.read", "like.write", "offline.access"],
client_secret=oauth_secret
)
auth_link = oauth2_user_handler.get_authorization_url()
Why i can't reach to the authorization page properly?
Upvotes: 1
Views: 1055
Reputation: 11
I'm pretty sure the Twitter API is not available anymore since Musk bought it out. Could be wrong but I'm pretty sure that's why it's not working.
Upvotes: 1