twit icon indicating copy to clipboard operation
twit copied to clipboard

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

Open Wazzabeee opened this issue 6 years ago • 5 comments

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);
}

Wazzabeee avatar Dec 12 '19 09:12 Wazzabeee

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.

gilann avatar Dec 16 '19 15:12 gilann

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

lazydevpro avatar May 19 '20 22:05 lazydevpro

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

Wazzabeee avatar May 20 '20 06:05 Wazzabeee

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

earlybail avatar Aug 27 '21 02:08 earlybail

auto_populate_reply_metadata: true

it saved me

brunoleomont avatar Jan 25 '22 19:01 brunoleomont