Script to Make Auto Twitter Card for Blog Sharing


'When You Share Your Blog/Website Link, Twitter Will Show Thumbnail and Desc like this Image,

Put this Code above tag </head> and Customize Blue Font with Yours.

<!-- Socmed-->
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<meta expr:content='data:blog.pageName' property='og:title'/>
<meta expr:content='data:blog.canonicalUrl' property='og:url'/>
<meta content='article' property='og:type'/>
<b:if cond='data:blog.metaDescription'>
<meta expr:content='data:blog.metaDescription' property='og:description'/>
<b:else/>
<meta expr:content='&quot;YOU CAN READ&quot; + data:blog.pageName + &quot; in This URL &quot; + data:blog.title + &quot;&quot;' property='og:description'/>
</b:if>
</b:if>
<meta expr:content='data:blog.title' property='og:site_name'/>
<b:if cond='data:blog.postImageUrl'>
<meta expr:content='data:blog.postImageUrl' property='og:image'/>
<b:else/>
<b:if cond='data:blog.postImageThumbnailUrl'>
<meta expr:content='data:blog.postThumbnailUrl' property='og:image'/>

</b:if>
</b:if>
<meta content='YOUR FACEBOOK NAME' property='fb:admins'/>
<meta content='summary_large_image' name='twitter:card'/>
<meta content='@TWITTER USERNAME' name='twitter:creator'/>
<!--END-->

Search in This Blog