I want to integrate tweet button in my website in which i can quote tweet a tweet by passing the tweet Id of the tweet I want to tweet. How can i do that?

Add the permalink of the tweet you want to quote as part of the tweet text in your web intent (url encoded appropriately), this will make a quote tweet.

Thanks @IgorBrigadir . please can you provide an example?

Sure, the docs are here for it: Web Intent | Docs | Twitter Developer Platform

Or see here for an example Twitter Publish

Hey @IgorBrigadir . Its not working, please can you share an example, it would be really helpful

What is the current https://twitter.com/intent/tweet?text= intent url that you’ve tried? (You can use the preformated text / code block in the forum)

@IgorBrigadir

<a
          className='twitter-share-button twitter_form-btn common_btn'
          href={`https://twitter.com/compose/tweet?text=some_text`}
          target='_blank'
          rel='no-referrer'
        >
          Go To Twitter
        </a>

This is our twitter button and now what we want to do is post this tweet with another tweet as a qoute
What should be added in this to make a qoute tweet

@IgorBrigadir please can you help. we are on short deadline

Sure, it should be enough to edit some_text to the text you want, and the permalink of the tweet you want to quote, url encoding it.

@IgorBrigadir please can you give me an example. it will be really helpful

Replace that with something like

href={`https://twitter.com/compose/tweet?text=This is an interesting Tweet https://twitter.com/andypiper/status/1572718420805980161`}

I just tried this and it opened a Tweet composer window with the text and Tweet pre-populated, when I posted the Tweet, the Tweet included was quoted.

I have no idea how your website is coded, but you will need to do something in JavaScript (I assume) to go from the Tweet ID to the URL to append into the text parameter.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.