Javascript twitter sharer button?


(frank-edouard wozniak) #1

hello all

I need to found an easy way to share a page on twitter… I put all the OG’s descriptions in the head of my page but i don’t want to use the normal twitter share button, in fact i’m searching for a javascript function method to put on a hype button.

can someone help me to find a way to succeed ?

thanks !!

f e w


#2

Here’s how to do that: https://dev.twitter.com/web/tweet-button

No JS required. You can encode a URL here: https://twitter.com/intent/tweet?text=Hello%20world


(frank-edouard wozniak) #3

thanks Daniel…

sounds very useful…

but I made a custom SVG twitter logo… how to link it to the encode twitter intent ?

in fact i don’t need the regular tweet button

thanks !