Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
How to use Twitter Cards with ASP.Net MVC3 ? I try like this in _Layout.cshtml:


XML
<meta name="twitter:card" content="summary">
<meta name="twitter:url" content="http://www.nytimes.com/2012/02/19/arts/music/amid-police-presence-fans-congregate-for-whitney-houstons-funeral-in-newark.html">
<meta name="twitter:title" content="Parade of Fans for Houston’s Funeral">
<meta name="twitter:description" content="NEWARK - The guest list and parade of limousines with celebrities emerging from them seemed more suited to a red carpet event in Hollywood or New York than than a gritty stretch of Sussex Avenue near the former site of the James M. Baxter Terrace public housing project here.">
<meta name="twitter:image" content="http://graphics8.nytimes.com/images/2012/02/19/us/19whitney-span/19whitney-span-articleLarge.jpg">


but I get nothing in Twitter?
Posted
Updated 2-Dec-16 0:26am

1 solution

You need to actually sign up with Twitter to be allowed to use Twitter Cards. Once you get everything set up on your site, you need to submit your site to be approved by Twitter. They won't approve every site, since this is early in the rollout phase. You can read more about how to set your site up and how to get approval here:

https://dev.twitter.com/docs/cards[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900