2012-01-13 4 views
0

私はアプリケーションにFacebookのコメントをほぼうまく統合しましたが、解決方法がわからない問題がいくつかあります。GWT - Facebookのコメント - もっと見る

問題は、button/divの "More X"のコメントと上のバー(注文を選択できる場所)が表示されないという問題です。あなたは、このリンクで見ることができます

http://saxbox.keep.pt/community/#id/5

6件のまたは7のコメントがありますが、プラグインは5つのコメントの最大なく、ボタンの表示がより表示されません持っています。

提案がありますか?私は、ビューの詳細ボタンを取得していないとしても、この単純なHTMLで

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 
<html> <!--xmlns:fb="http://ogp.me/ns/fb#">--> 
<head> 
</head> 
<body> 
</body> 
<div id="fb-root"></div> 
<script>(function(d, s, id) { 
var js, fjs = d.getElementsByTagName(s)[0]; 
if (d.getElementById(id)) return; 
js = d.createElement(s); js.id = id; 
js.src = "//connect.facebook.net/pt_PT/all.js#xfbml=1"; 
fjs.parentNode.insertBefore(js, fjs); 
}(document, 'script', 'facebook-jssdk'));</script> 
<div class="fb-comments" data-href="http://saxbox.keep.pt/community/" data-num-posts="2" data-width="470"></div> 
</html> 


私は、次のコードでFacebookのプラグインをテストするためのHTMLファイルを作成しました。プラグインにバグがありますか?または私は何か間違っている?

答えて

0

Facebookに問題があるかもしれません。

これは、URLのハッシュタグと関係があります。代わりにquerystringに変換する方法はありますか?

初めてきれいなブラウザでそのページに行ったとき、私はid 5ページには到達しませんでしたが、いくつかのホームページにリダイレクトされました。私は実際のページに行くために#id/5を再入力しなければなりませんでした... Facebookはおそらく同じ状況に走っています。 [OK]を

EDIT

、私は再び試みたとFacebookはまだ間違った情報を見ている:

http://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fsaxbox.keep.pt%2Fcommunity%2F%23id%2F5

そして、あなたは、このリンクを辿る場合:http://developers.facebook.com/tools/debug/og/echo?q=http%3A%2F%2Fsaxbox.keep.pt%2Fcommunity%2F%23id%2F5

をこれはあなたのサーバーが応答するものですwith:ogメタタグがなく、コメントプラグインがないことに注意してください。

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 
<!-- The HTML 4.01 Transitional DOCTYPE declaration--><!-- above set at the top of the file will set  --><!-- the browser's rendering engine into   --><!-- "Quirks Mode". Replacing this declaration  --><!-- with a "Standards Mode" doctype is supported, --><!-- but may lead to some differences in layout. --><html> 
<!-- xmlns:fb="http://ogp.me/ns/fb#">--><head> 
<meta http-equiv="content-type" content="text/html; charset=utf-8"> 
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> 
<!-- Default locale --><meta name="gwt:property" content="locale=pt_PT"> 
<!--                --><!-- Consider inlining CSS to reduce the number of requested files --><!--                --><!--<link type="text/css" rel="stylesheet" href="WebCommunityClient.css">--><title>weebox community</title> 
<!--           --><!-- This script loads your compiled module. --><!-- If you add any GWT meta tags, they must --><!-- be added before this line.    --><!--           --><script type="text/javascript" language="javascript" src="webcommunityclient/webcommunityclient.nocache.js"></script><link rel="alternate" type="application/rss+xml" title="RSS" href="rss"> 
<meta name="title" content="weebox community"> 
<meta name="description" content="weebox community"> 
<link rel="image_src" href="logo.png"> 
</head> 
<!--           --><!-- The body can have arbitrary html, or  --><!-- you can leave the body empty if you want --><!-- to create a completely dynamic UI.  --><!--           --><body> 

<div id="fb-root"></div> 
<script>(function(d, s, id) { 
    var js, fjs = d.getElementsByTagName(s)[0]; 
    if (d.getElementById(id)) return; 
    js = d.createElement(s); js.id = id; 
    js.src = "//connect.facebook.net/pt_PT/all.js#xfbml=1"; 
    fjs.parentNode.insertBefore(js, fjs); 
}(document, 'script', 'facebook-jssdk'));</script><!-- OPTIONAL: include this if you want history support --><iframe src="javascript:''" id="__gwt_historyFrame" tabindex="-1" style="position: absolute; width: 0; height: 0; border: 0"></iframe> 

<div id="loading" style="height: 99%;"><img src="loading.gif" alt="Loading..." style="position: relative; top: 50%; left: 50%; margin-top: -27px; margin-left: -27px;"></div> 
<div id="main"></div> 
</body> 
</html> 
+0

私の編集をお読みください。単純なURLであっても、プラグインは正しく動作していません。なにか提案を? –

+0

上記の編集コメントを見るあなたはそれを修正しなければならないので、facebookはページをリントすることができ、またあなたはURLを修正する必要があります。 – DMCS

+0

ogメタタグは私がすぐに追加できるものです。 なぜコード206になるのですか? ogメタタグが存在しないため? –

関連する問題