Comments (7)
I think this has to do with some settings on our end, and I know this code worked for some users. I'm still working on getting to the bottom of it, but I'll let you know if I hear of anything. Also worth noting that we've made some auth changes since that page was initially created.
from twitter-api-v2-sample-code.
Nice find!
I needed to add an extra x_auth_access_type
query parameter to get write access:
request_token_url = "https://api.twitter.com/oauth/request_token?oauth_callback=oob&x_auth_access_type=write"
Source: https://developer.twitter.com/en/docs/authentication/api-reference/request_token
from twitter-api-v2-sample-code.
@timborden good to know. I guess I didn't need that because I changed my OAuth settings in Developer Portal from the default read to read/write?
from twitter-api-v2-sample-code.
Thanks, @zmoon @timborden, for your feedback. I'm looking into this and will make some changes here if needed.
from twitter-api-v2-sample-code.
All versions of this code work for me, but I'm going to go ahead and update all the samples with https://api.twitter.com/oauth/request_token?oauth_callback=oob&x_auth_access_type=write
. Thank you for this feedback.
from twitter-api-v2-sample-code.
@JessicaGarson any idea why oauth_callback=oob
wasn't needed for you? This page makes it sound like it is always needed in this situation.
If you are using pin-based authorization, you will need to set this to
oob
.
from twitter-api-v2-sample-code.
I'm going to close out this issue since these issues have been resolved.
from twitter-api-v2-sample-code.
Related Issues (20)
- When authenticating requests to the Twitter API v2 endpoints, you must use keys and tokens from a Twitter developer App that is attached to a Project. You can create a project via the developer portal HOT 4
- Authentication Error (403 Forbidden) when Running Twitter Bot HOT 4
- Was the users lookup endpoint removed from the free tier
- Add JS examples in Direct-Messages-Lookup folder
- Where's the media upload script in this repository? How can I attach an image to a tweet here? HOT 6
- Filtered stream example can cause 429 error
- delete_tweet.py returns 403 in free tier HOT 1
- How to do a Webhook connection using Twitter activity Api v2 to create a chatbot and access DM? using BASIC plan.
- you must use keys and tokens from a Twitter developer App that is attached to a Project
- the whole x dev bs needs fixing
- 'Enviornment?' Oy.
- How to fix "Uncaught Error Error [ERR_REQUIRE_ESM]: require() of ES Module not supported"? HOT 1
- When authenticating requests to the Twitter API v2 endpoints, you must use keys and tokens from a Twitter developer App that is attached to a Project. You can create a project via the developer portal HOT 2
- Twitter V2 Get Tweets API's Query Parameter not working HOT 1
- Getting Tweets with Bearer Token is not working
- How to solve the bug about issue #69
- Error to get tweets from my account HOT 1
- ConnectionError
- Error adding rules: 403 Forbidden When authenticating requests to the Twitter API v2 endpoints, you must use keys and tokens from a Twitter developer App that is attached to a Project. You can create a project via the developer portal.
- Error adding rules: 403 Forbidden When authenticating requests to the Twitter API v2 endpoints, you must use keys and tokens from a Twitter developer App that is attached to a Project. You can create a project via the developer portal HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from twitter-api-v2-sample-code.