1

Facebook apiからコードを追加し、いいねボタンはうまく機能しますが、[送信] ボタンを押すと空の白いウィンドウが表示されます

ここに画像の説明を入力

私は単にそれを機能させることができません...コードはまさにFacebookが提供するものです.それなら私からのCSSの問題ですか? <body>この空白の iframe からの html が空であるため、そうは思いません(生成された iframe の html コンテンツの下に追加されます)。

    <html lang="ro" id="facebook" class=""><head><meta charset="utf-8"><script>function envFlush(a){function b(c){for(var d in a)c[d]=a[d];}if(window.requireLazy){requireLazy(['Env'],b);}else{Env=window.Env||{};b(Env);}}
    envFlush({"user":"100001239412598","locale":"ro_RO","method":"GET","svn_rev":570203,"tier":"","vip":"69.171.247.37","static_base":"http:\/\/static.ak.fbcdn.net\/","www_base":"http:\/\/www.facebook.com\/","rep_lag":2,"fb_dtsg":"AQBOKqPl","ajaxpipe_token":"AXhXQi8-oWUGGfAu","lhsh":"KAQFH3p9n","tracking_domain":"http:\/\/pixel.facebook.com","retry_ajax_on_network_error":"1","fbid_emoticons":"1"});</script><script>envFlush({"eagleEyeConfig":{"seed":"1kC9","sessionStorage":true}});CavalryLogger=false;window._script_path = "\/plugins\/send_button_form_shell.php";</script><noscript> &lt;meta http-equiv="refresh" content="0; URL=/plugins/send_button_form_shell.php?anchorTargetX=88&amp;amp;anchorTargetY=9.5&amp;amp;api_key=315447585207093&amp;amp;channel=http%3A%2F%2Fstatic.ak.facebook.com%2Fconnect%2Fxd_arbiter.php%3Fversion%3D6%23cb%3Df22a63973%26origin%3Dhttp%253A%252F%252Flocalhost%253A2263%252Ffec0b9f18%26domain%3Dlocalhost%26relation%3Dparent.parent&amp;amp;controllerID=u7jiqd_4&amp;amp;error&amp;amp;extended_social_context=false&amp;amp;locale=en_GB&amp;amp;nodeURL=http%3A%2F%2Fconvertmypdftoword.com%2F&amp;amp;offsetX=77&amp;amp;offsetY=20&amp;amp;sdk=joey&amp;amp;_fb_noscript=1" /&gt; </noscript>
    <meta name="robots" content="noodp, noydir"><meta name="description" content=" Facebook este o reţea socială care conectează oamenii cu prietenii lor şi cu alte persoane care lucrează, studiază şi trăiesc în preajma lor. Oamenii folosesc Facebook pentru a ţine legătura cu prietenii, pentru a încărca un număr nelimitat de fotografii, pentru a posta link-uri şi videoclipuri şi pentru a afla mai multe despre oamenii pe care îi întâlnesc."><link rel="alternate" media="handheld" href="http://www.facebook.com/plugins/send_button_form_shell.php?anchorTargetX=88&amp;anchorTargetY=9.5&amp;api_key=315447585207093&amp;channel=http%3A%2F%2Fstatic.ak.facebook.com%2Fconnect%2Fxd_arbiter.php%3Fversion%3D6%23cb%3Df22a63973%26origin%3Dhttp%253A%252F%252Flocalhost%253A2263%252Ffec0b9f18%26domain%3Dlocalhost%26relation%3Dparent.parent&amp;controllerID=u7jiqd_4&amp;error&amp;extended_social_context=false&amp;locale=en_GB&amp;nodeURL=http%3A%2F%2Fconvertmypdftoword.com%2F&amp;offsetX=77&amp;offsetY=20&amp;sdk=joey">
        <link rel="stylesheet" href="http://static.ak.fbcdn.net/rsrc.php/v2/yQ/r/6hVMLER2b2X.css">
        <link rel="stylesheet" href="http://static.ak.fbcdn.net/rsrc.php/v2/yy/r/jgXc1egys1V.css">

        <script src="http://static.ak.fbcdn.net/rsrc.php/v2/y5/r/_xZSy89IRtb.js"></script>
      <script>window.Bootloader && Bootloader.done(["Mw+jI"]);</script></head>
<body></body>
</html>

他の誰かがこの問題に遭遇しましたか?

4

2 に答える 2

2

Facebookのメタタグを追加した後は機能します:

<meta property="og:title" content="your_content"/>

<meta property="og:image" content="your_logo"/>

<meta property="og:type" content="website"/>

<meta property="fb:app_id" content="your_app_id"/>
于 2012-06-08T12:41:36.717 に答える
0

それでも問題が解決しない場合は、次のツールを確認してください: https://developers.facebook.com/tools/debug

それはあなたのサイトをチェックし、何が欠けているかを教えてくれます。例えば:

修正が必要ないいねボタンの警告

Admins And App ID Missing - fb:admins and fb:app_id tags are missing. These tags are necessary for Facebook to render a News Feed story that generates a high click-through rate.

Like Button Tag Missing - og:title is missing. The og:title meta tag is necessary for Facebook to render a News Feed story that generates a high click-through rate.

Like Button Tag Missing - og:type is missing. The og:type meta tag is necessary for Facebook to render a News Feed story that generates a high click-through rate.

Like Button Tag Missing - og:image is missing. The og:image meta tag is necessary for Facebook to render a News Feed story that generates a high click-through rate.
于 2013-06-05T16:51:49.550 に答える