开发者

Twitter Tweet-button with opengraph support? Is it possible?

开发者 https://www.devze.com 2023-03-30 21:12 出处:网络
I\'ve already added the Facebook like-button, the Google +1 button and now i\'m adding the Twitter Tweet button but noticed that it doesn\'t make use of any the opengraph metatags i\'ve embedded in th

I've already added the Facebook like-button, the Google +1 button and now i'm adding the Twitter Tweet button but noticed that it doesn't make use of any the opengraph metatags i've embedded in the <head> of my page while facebook and google do.

开发者_如何学GoHow can i make the Tweet Button use the data from my OpenGraph metatags so i don't need to add redundant data to my page just to get the tweet button to work correctly?


Currently Twitter doesn't support any kind of tags . See https://dev.twitter.com/discussions/1244 . However you can add a picture and location through the media API

https://dev.twitter.com/docs/api/1/post/statuses/update_with_media 
There are some kind of "automatic" integration but only for big players such amazon.com , youtube.com etc ... Try to tweet a link with any amazon product and the tweet will automatically get populated with additional info such a picture, add to cart button etc .

0

精彩评论

暂无评论...
验证码 换一张
取 消