在http://www.btandthetenants.com上,除了照片部分,每个页面都可以被点赞。我使用 AJAX 来更改当前页面的点赞按钮,并且该脚本在包括此页面在内的每个页面上都能完美执行。但是,如果您尝试在此页面上点赞,它将立即撤消您的操作。头部打开图的代码(如果是 y,则生成 HTML)是:
<meta property="og:site_name" content="Brandon Taylor & The Tenants" />
<meta property="fb:admins" content="100000142903767,1290840046" />
<meta property="fb:app_id" content="162010397258435" />
<meta property="og:url" content="http://www.btandthetenants.com/photos" />
<meta property="og:title" content='Brandon Taylor & The Tenants | Photos' />
<meta property="og:type" content="band" />
<meta property="og:image" content="http://www.btandthetenants.com/img/gi.png" />
<meta property="og:description" content="See all of Brandon Taylor & The Tenants' pictures streamed straight from their Facebook page." />
以及动态like按钮的代码:
<div id="fb-like"><div class="fb-like fb_edge_widget_with_comment fb_iframe_widget" data-layout="box_count" data-send="false" data-width="35" data-show-faces="false" data-font="arial" data-href="http://www.btandthetenants.com/photos"><span style="height: 62px; width: 45px; "><iframe id="f1603dc7e8" name="f11a7f8ffc" scrolling="no" style="overflow: hidden; height: 62px; width: 45px; border: none; " title="Like this content on Facebook." class="fb_ltr" src="https://www.facebook.com/plugins/like.php?api_key=162010397258435&channel_url=http://static.ak.facebook.com/connect/xd_arbiter.php?version=5#cb=f1d41deae&origin=http://www.btandthetenants.com/f3e64780fc&domain=www.btandthetenants.com&relation=parent.parent&extended_social_context=false&font=arial&href=http://www.btandthetenants.com/photos&layout=box_count&locale=en_US&node_type=link&sdk=joey&send=false&show_faces=false&width=55"></iframe></span></div></div>
我真的很难过。谢谢。