Questions tagged [twitter-api-v2]
231 questions
0
votes
0 answers
Twitter: ui-metrics from javascript file
I am trying to build my own Twitter Bot, but I'm stuck at the point where it needs to press a button to continue to the next page. My Page is twitter.com/account/access and when the account is locked it will show javascript on account/access?js=1…

hashem baddad
- 49
- 7
0
votes
0 answers
Twitter API Video Upload with url
In twitter API """ https://developer.twitter.com/en/docs/twitter-api/v1/media/upload-media/api-reference/post-media-upload-append """
While Uploading a video through this API i have created a buffer to get the chuck of the data and append the data…

Rohit517
- 15
- 6
0
votes
0 answers
Unable to login user with OAuth2 using twitter-api-v2 typescript sdk in Next.js api
The sdk generates the url correctly and redirects user with no error where I store the codeVerifier and state. Error come when The callback is received and the stored codeverifier fails to authenticate the user with oauth2
export async function…

Maina David
- 15
- 8
0
votes
0 answers
How to fetch user info using twitter api v2
I am trying to fetch tweets from twitter into a dataframe, I have been able to fetch the tweets but there are some additional data that I would like to add like the username, retweet count. I have scoured the docs and tried everything to the best of…

Chioma Amuwa
- 3
- 2
0
votes
1 answer
Error 403 and 401 when trying to retrieve tweets with R. Twitter API
I have pretty basic knowledge in R. A few months ago, I used this simple code with the package Rtweet to retrieve tweets using my credentials of the Twitter API.
library(rtweet)
library(igraph)
library(tidyverse)
token <- create_token(
app =…
0
votes
0 answers
Twitter's Tweepy 403 Error when trying to retrieve account's followers
I'm updating code from v1 to v2 of twitter's API (since most of V1 can't be used anymore) I'm trying the following method as per the new Twitter API V2 Tweepy documentation (https://docs.tweepy.org/en/stable/client.html):
try:
followers =…

E C
- 11
- 4
0
votes
1 answer
TweepyException: Failed to parse JSON payload: Expecting value: line 1 column 1 (char 0)
I am using twitter v1 api for searching the tweet , last day python script working fine but today it gives the error
TweetException Failed to parse the Payload
Any suggestion?
consumer_key = "*"
consumer_secret = "*"
access_key = "*"
access_secret…

Harsh Bhatnagar
- 1
- 1
0
votes
0 answers
Getting a "401 Unauthorized" error when running the Twitter bot (Tweepy Client API v2)
I run this code:
import tweepy
client = tweepy.Client(
consumer_key=" CONSUMER KEY ",
consumer_secret=" CONSUMER SECRET ",
access_token=" ACCESS TOKEN ",
access_token_secret=" ACCESS TOKEN SECRET "
)
following =…

Toma Schreibman
- 1
- 2
0
votes
0 answers
Unable to post a tweet with PHP code with "errors":[{"code":32,"message":"Could not authenticate you."}]
This is my code
// Replace these with your actual keys and tokens
$consumer_key = 'consumer_key';
$consumer_secret = 'consumer_secret';
$access_token = 'access_token';
$access_token_secret = 'access_token_secret';
// Your tweet…

vimuth
- 5,064
- 33
- 79
- 116
0
votes
1 answer
Trying to create tweet using tweepy raises "AttributeError: _make_request"
I'm trying to create a tweet with a bot using tweepy, but I keep getting errors (as shown below).
I'm using Python 3 and Twitter APIv2.
When running only the api.verify_credentials, the authentication does succeed.
UPDATE
I managed to run this code…

Toma Schreibman
- 1
- 2
0
votes
0 answers
How to retrive 100 tweets from a time period on twitter v2 using python utilising next_token
I am trying to retrieve a total of 5000 tweets using the basic access API. I have been getting less than the 100 tweets asked for using the duplicate check in my code. I want to use the next_token param but I don't know how to implement it in this…
0
votes
1 answer
Twitter API version 2 Image Uploading Error
I'm using Twitter library its called Twitteroauth,
and follow their instruction about image posting. So when I try to do image posting its throwing error because media are not uploading. Normal text posting is working fine as expected and everything…

Mir Shaon
- 1
- 4
0
votes
0 answers
Is there any way get tweets timeline from a nodejs script using the oficial twitter-api-sdk?
This sdk only supports App-only Bearer Token and OAuth 2.0. Using the bearer token is not possible to read timelines, and OAuth 2.0 requires a callback URL (and because this is a node.js script, we don't have one).
Using bearer token I get this…

Gabriel Bianconi
- 100
- 1
- 9
0
votes
0 answers
Twitter API v2 Video upload
Something is wrong with my code...
Video's status is still in_proguress.
error
object(stdClass)#9 (5) { ["media_id"]=> int(1682626180757979138) ["media_id_string"]=> string(19) "1682626180757979138" ["media_key"]=> string(21) "7_1682626180757979138"…
user22261714
0
votes
1 answer
Twitter Oauth v2 API: Disable Universal Link on Mobile
I am running into an issue that is much like this one from eight years ago:
Disable Twitter Universal Deep Links
As this is from 2015, it appears this is not v2. In my case, I am using v2 and running into the same issue.
My website has an…

Mike-E
- 2,477
- 3
- 22
- 34