Twitter - share button, but with image -


i want use regular share button on page https://twitter.com/about/resources/buttons#tweet add embedded image site, not link.

i know 1.1 api , uploading, making tw application , ask visitor on site to give permission write on timeline share 1 pic site not scenario, think alternatives.

i've noticed when paste links of pic uploaded on twitter tweet, if paste link https://pbs.twimg.com/media/bppk_kucmnbxspn.jpg not going embeded, if paste link pic.twitter.com/nudsx1zkwy embeded. think if make profile , app call https://upload.twitter.com/1/statuses/update_with_media.json , upload pic, , paste link in share button tweet pic embeded. or there better way? use php.

look twitter cards.
trick not in button rather page sharing. twitter cards pull image meta tags similar facebook sharing.
example:

<meta name="twitter:card" content="summary_large_image"> <meta name="twitter:site" content="@site_username"> <meta name="twitter:title" content="top 10 things ever"> <meta name="twitter:description" content="up 200 characters."> <meta name="twitter:creator" content="@creator_username"> <meta name="twitter:image" content="http://placekitten.com/250/250"> <meta name="twitter:domain" content="yourdomain.com"> 

Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -