2012-06-08 5 views
1

I ajouté le code de facebook api et comme bouton fonctionne bien, mais lorsque vous appuyez sur « Envoyer » bouton, il rend une fenêtre blanche vide videPourquoi Facebook "Envoyer" rend la fenêtre vide vide?

enter image description here

Je ne peux tout simplement pas le faire fonctionner ... Le code est exactement ce que Facebook Provids, alors est un problème de css de moi? Simplement, je ne pense pas parce que le <body> du html de ce iframe vide est vide (ajouté ci-dessous le contenu html iframe généré):

<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":"1000","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> 

Quelqu'un at-il rencontré d'autre cette question?

Répondre

2

Il fonctionne après avoir ajouté les balises meta pour 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"/> 
+0

Cela seul a fait l'affaire? – Cacovsky

0

Si vous avez encore des problèmes vérifier cet outil: https://developers.facebook.com/tools/debug

Il vérifie votre site et vous indique ce qui manque, par exemple:

Comme les avertissements de bouton qui doivent être corrigés

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.