0
可能有人請告訴我如何調整與新V5的Facebook-C#-sdk facebook的iframe的畫布頁面大小?我從谷歌嘗試了一些解決方案,但我想我不會調用正確的FB方法或Facebook C#SDK方法。畫布頁面大小的Facebook-C#-sdk
我的iframe被截斷,即使在頁面加載的其餘部分正確外的Facebook。
我不能再往前走,這個代碼工作在本地主機上,並在FB上的滾動條,但與FB滾動條掀起帆布總是截斷。我甚至嘗試禁用2010彙總設置。請幫忙。
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ddd.aspx.cs" Inherits="CN.Project.WebUI.ddd" %>
body {overflow: hidden;}
<script type="text/javascript" src="http://connect.facebook.net/en_US/all.js"></script>
<br/>
<h3>My test header</h3>
<br/>
<p>
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app.
Welcome this is a test of a really long page for a facebook app. (last)
</p>
</form>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Text;
using System.Web.UI;
using System.Web.UI.WebControls;
using Facebook;
using Facebook.Web;
using System.Configuration;
namespace CN.Project.WebUI {
public partial class ddd : System.Web.UI.Page {
protected void Page_Load(object sender, EventArgs e) { RegisterScripts(); }
public void RegisterScripts()
{
var settings = ConfigurationManager.GetSection("facebookSettings");
var current = settings as IFacebookApplication;
String csname = "FBInit";
Type cstype = this.GetType();
ClientScriptManager cs = Page.ClientScript;
StringBuilder strCmd;
strCmd = new StringBuilder();
strCmd.Append("$(document).ready(function() { FB.init({ appId: '" + current.AppId + "', status: true, cookie: true, xfbml: true }); });\r\n");
strCmd.Append("window.fbAsyncInit = function() {FB.Canvas.setAutoResize()};\r\n");
if (!cs.IsStartupScriptRegistered(cstype, csname))
{
cs.RegisterStartupScript(cstype, csname, strCmd.ToString(), true);
}
}
}
}
見上仍然does not工作的代碼 – Craig 2011-03-27 10:35:58
您需要初始化的JavaScript SDK,並插入一個
感謝,這是現在的工作 – Craig 2011-04-01 11:52:00