Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't reply to a specific tweet with the correct id_str #522

Open
Wazzabeee opened this issue Dec 12, 2019 · 5 comments
Open

Can't reply to a specific tweet with the correct id_str #522

Wazzabeee opened this issue Dec 12, 2019 · 5 comments

Comments

@Wazzabeee
Copy link

Hello i've already seen the other issues concerning this problem but didn't manage to correct it anyway...
I can not manage to reply to a specific tweet, instead it just tweets on my profile.
The 'id_str' is the right one, i checked it with T.get(statuses/show/.......) and the tweet is shown.
Also the type of 'id_str' is a string so i definitely don't understand why it doesn't answer to the tweet.

Here is my code if that can help !

Thanks in advance

function gotData(err, data, response) 
{
	var tweets = data.statuses;
        var name = tweets[0].user.screen_name;
	var id_str = tweets[0].id_str;

        console.log(id_str); //prints the correct ID
        console.log(typeof id_str); //returns string

	T.post('statuses/update',{
		in_reply_status_id : id_str,
		status : '@' + name + ' blablabla',
		}, check);
}
@gilann
Copy link

gilann commented Dec 16, 2019

I am facing the problem,
I tried
in_reply_to_status_id and in_reply_to_status_id_str also, but it didn't help.
Tried passing tweet id both as integer and string, but no help.

@lazydevpro
Copy link

Do any of you was able to find a solution for this? Please let me know.

@Wazzabeee
Copy link
Author

I'm sorry to say that but i've dropped this idea :/ So no I never found a solution to this problem...

@earlybail
Copy link

For anyone still looking, according to Twitter docs you need to have the username of the tweet you're replying to at the front of your status text OR pass auto_populate_reply_metadata: true

@brunoleomont
Copy link

brunoleomont commented Jan 25, 2022

auto_populate_reply_metadata: true

it saved me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants