开发者

facebook like button not displaying news article content

开发者 https://www.devze.com 2023-03-10 22:37 出处:网络
I\'m implementing a facebook like button on a simple blog/news section I created in an MVC 3 web application.

I'm implementing a facebook like button on a simple blog/news section I created in an MVC 3 web application.

I used the XFBML way to implement this.

It works, but not completely. When clicking and checking it on facebook, it shows the title I specified.

Here is a piece of code. The viewbag information comes from my view, this is in the layout/master page.

<meta property="og:title" content="@ViewBag.FGTitle" />

But since it's a news item, I also want the content of the article to be displayed. It only shows, the title, the site name and that's it.

I checked the facebook deve开发者_运维知识库loper page, but I cant find a meta property/Open graph type in which i can set this content.

any ideas?


see the facebook url linter it shows you exactly what facebook sees when greping the url. Also you should read up on the other meta tags

0

精彩评论

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

关注公众号