0

http://www.btandthetenants.comでは、写真セクションを除くすべてのページに「いいね!」を付けることができます。AJAX を使用して現在のページのいいねボタンを変更すると、このスクリプトを含むすべてのページでスクリプトが完全に実行されます。ただし、このページで「いいね」をクリックしようとすると、すぐにアクションが取り消されます。head の開いたグラフ (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." />

そして、動的いいねボタンのコード:

<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>

私は心から困惑しています。ありがとう。

4

1 に答える 1

1

これは、いいねボタンをクリックしようとするとページが返すものです。

for (;;);{"__ar":1,"payload":{"requires_login":false,"success":false,"already_connected":false,"is_admin":false,"show_error":true,"error_info":{"brief":"Cannot see this page","full":"This page is either disabled or not visible to the current user.","errorUri":"\/connect\/connect_to_node_error.php?title=Cannot+see+this+page&body=This+page+is+either+disabled+or+not+visible+to+the+current+user.&hash=AQCKE3RqZ24PrqLg"}}}

ここで報告されているバグのようです。同じ問題を報告しているこの質問も見てください。

于 2012-05-07T10:07:52.487 に答える