我正试图用流利的花招来做我的面像。 我正在使用文字
window.fbAsyncInit = function() {
FB.Canvas.setAutoGrow();
}
just after i initialize my app but it is still set to 800px. How should i use this function?
我正试图用流利的花招来做我的面像。 我正在使用文字
window.fbAsyncInit = function() {
FB.Canvas.setAutoGrow();
}
just after i initialize my app but it is still set to 800px. How should i use this function?
或许为了帮助他人,试图从你的法典中删除https或https。 这里的地雷(波拉线):
<div id="fb-root"></div>
<script type="text/javascript" src="//connect.facebook.net/en_US/all.js"></script>
<script type="text/javascript">
window.fbAsyncInit = function() {
FB.init({
appId : YOUR_APP_ID , // App ID
channelUrl : //WWW.YOURURL.COM/FOLDER , // Channel File
status: true,
cookie: true,
xfbml: true
});
FB.Canvas.setAutoGrow();
}
</script>
在我删除了http/https之后,它就在所有浏览器上工作。
在</one>
tag之前,我写了以下代码。
<div id="fb-root"></div>
<script type="text/javascript">
window.fbAsyncInit = function() {
FB.init({
appId: <?php echo YOUR_APP_ID ?> ,
cookie: true,
xfbml: true,
oauth: true
});
FB.Canvas.setAutoGrow(true);
};
(function() {
var e = document.createElement( script ); e.async = true;
e.src = document.location.protocol +
//connect.facebook.net/en_US/all.js ;
document.getElementById( fb-root ).appendChild(e);
}());
</script>
这对我来说是很不错的。
在高级应用环境中,<代码>八<>/代码>为<代码>六或氟。
参看本页:
https://developers.facebook.com/docs/fer/javascript/FB.Canvas.setAutoGrow/
“如果你知道你的内容会改变规模,那么这一职能是有益的,但你不知道什么时候。 如果你知道你的内容改变规模,那么你就应当叫作固定的(并节省用户的CPU周期)”。
因此,如果你有某种 j印功能,可以提高高度,那么你可以称之为固定方法,否则就会设置AutoGrow,并具体规定间隔更长或更短。
Try with following.It will auto resize your iframe.
<html>
<head>
<script src="./includes/js/jquery.min.js"></script>
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
<script type="text/javascript">
window.fbAsyncInit = function(){
FB.init({appId: appid , status: true, cookie: true, xfbml: true});
FB.Canvas.setAutoResize();};
function setSize(){
FB.Canvas.setAutoResize();}
</script>
</head>
<body style="overflow: hidden" onload="setSize()">
如果你重新尝试使用流.,就没有必要确定机体的规模。 事实上,你之所以这样说,是因为在联邦议会中有一股ug子;如果要花钱,则要求大小地板就无所作为——事实上,情况就是如此,呼吁得到处理。 这里有一条 against子:。 http://developers.facebook.com/bugs/272509486115 。 但布隆迪联邦认为这一低优先程度(鉴于我的诺言!)
为了正确进行流动,请在以下网址上查询:https://developers.facebook.com/blog/post/549。
你们需要确保贵网页上的内容箱能够按照上文链接的印章上的指示,将其高度定为100%。
I can view my application via the http://apps.facebook.com/app/ link and the content shows up correctly. I also added the application as a tab to a facebook page. However, when viewing the tab no ...
Our app is displaying its information in a way similar to that found on Facebook s "feed" page which shows a timeline of activity by members of the particular profile s network. I can see that could ...
I am using Facebook Connect for iPhone and following the official instructions. I use the following code to display the login dialog: FBLoginDialog* dialog = [[[FBLoginDialog alloc] initWithSession:...
I can view my application via the http://apps.facebook.com/myapplication/ link and the content shows up correctly. I also added the application as a tab to a facebook page. However, when viewing the ...
I m going to create a Facebook application which get informations (name and page_url) about Facebook page from his page_id. So i went to the Facebook Wiki and i found this API method which sounds good ...
I m working on a Facebook Application that generates wall posts. In testing these posts, I ve discovered that the Facebook Platform action of "liking" a post is failing. The specific error message ...
I was reading over the documentation yet I could not figure out how to call Facebook.showPermissionsDialog() in php include_once ./facebook-platform/php/facebook.php ; $facebook = new Facebook(my ...
If I plug in the facebook connect into my website, How can I prevent double signups? Lets say I have a user that s already signed up to my site but he clicked the connect with facebook, is there a ...