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