我在Tumblr博客上添加了一个Facebook Like按钮(在模板中):iFrame代码和Open Graph标签.该按钮通常显示在每篇博客文章下方.当我单击按钮时,它会将其状态更改为"已喜欢",但会在一秒后翻转回原始状态.
博客文章的HTML源代码是(iframe部分):
<iframe class="fb_button" src="http://www.facebook.com/plugins/like.php?app_id=APP_ID&href=http://www.beyondbrands.nl/post/7354959316/startup-weekend-amsterdam-join-crowdriding&send=false&layout=button_count&width=90&show_faces=true&action=like&colorscheme=light" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:90px; height:21px;" allowTransparency="true"></iframe>
Run Code Online (Sandbox Code Playgroud)
OG标签:
<meta property="og:title" content="Beyond Brands Blog, StartUp Weekend Amsterdam about to get started" />
<meta property="og:type" content="article" />
<meta property="og:url" content="http://www.beyondbrands.nl/post/7354959316/startup-weekend-amsterdam-join-crowdriding" />
<meta property="og:image" content="http://26.media.tumblr.com/avatar_6e2d27950ebb_128.png" />
<meta property="og:site_name" content="Beyond Brands Blog" />
<meta property="fb:admins" content="598414663" />
Run Code Online (Sandbox Code Playgroud)