Twitter web intent to post image? -


is possible attach image tweet via twitter's web intents? right now, if put image in message, full url of image put message, instead of shortened , attached image url...

https://twitter.com/intent/tweet?original_referer=http%3a%2f%2fwww.website.com%2f&text=mytext+http%3a%2f%2fwww.website.com%2fimg%2fimage.png&url=www.someurl.com 

click here see result (no attached image, full image url in message....)

when paste in image url tweet on twitter.com, image url automatically shortened , image attached tweet, shows image when view tweet. i'm looking similar web intents.

you can not attach image, can use twitter card.

with twitter cards, can attach rich photos, videos , media experience tweets drive traffic website.

essentially, need add metadata page. when twitter sees that, automatically insert image tweet.

for single photo, need put code on each page (put in own details)

<meta name="twitter:card" content="photo" /> <meta name="twitter:site" content="@example" /> <meta name="twitter:title" content="my picture" /> <meta name="twitter:description" content="a description" /> <meta name="twitter:image" content="http://example.com/test.jpg" /> <meta name="twitter:url" content="http://example.com/mypage.html" /> 

Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -