iFrame ページの高さをページのコンテンツに合わせて調整しようとしています。アプリの設定で、次のように設定しました。
キャンバスの幅: 固定 (760px) キャンバスの高さ: 設定可能 (デフォルト: 800px) ソーシャル ディスカバリー: 有効
そして、これは私の index.html ファイルのコードです:
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html
xmlns="http://www.w3.org/1999/xhtml"><head><title></title><meta http-equiv="refresh"
content="0;url= Merchandise.html" />
<script type="text/javascript">
window.fbAsyncInit = function() {
FB.Canvas.setSize();}
function sizeChangeCallback() {
FB.Canvas.setSize();}
</script></head><body><div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js"></script>
<script>
FB.init({
appId : 'XXXXXXXXX',
status : true,
cookie : true,
xfbml : true
});
</script></body></html>
ここから何が悪いのかよくわかりません。どんな助けでも素晴らしいでしょう。また、無駄に推奨されているcssブロックを追加しようとしました。
メタ更新タグを削除し、コードを編集すると、次のようになります。
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html
xmlns="http://www.w3.org/1999/xhtml"><head><title></title><content="0;url=
Merchandise.html" />
<script src="http://connect.facebook.net/en_US/all.js"></script>
<script type='text/javascript'>
window.onload=function() {
FB.Canvas.setSize({width:760,height:document.body.offsetHeight});
}
</script></head><body>
</body></html>
まだ運がない