English 中文(简体)
艾滋病毒/艾滋病
原标题:Facebook Canvas App Height less than 800px

我有两部面读书,其高度为872px,另一部是712px。 对827px的估算,我利用JS SDK的正本书成功地将这个数值从800升至872px。 但就712px而言,I haven t从800px中提取。 脸谱仪是否达到最低高水平,或一米做错事?

最佳回答

显然,Canvas App可能低于800 px。

问题回答

你们是否试图生动地打高? 这为我工作,因为我试图展示在高纬度低于800px的多页。 我的页表的通常高度为700px。

window.fbAsyncInit = function() {
   FB.init({
      appId: window.FB_APP_ID
   });

   // set height dependent on page (min height is 800px) 
   // but we are attempting to get it shorter
   var body_height = $( body ).first().outerHeight();

   FB.Canvas.setSize({ 
      height: body_height
   });
}

对我来说,如果不打上身高,那么把高点定在比你装上哪一页更短的位置上,那么,这就会促使固定的AutoGrow(AutoGrow)发挥功能,使其达到适当的高水平,并造成一些拖延。 虽然这将导致你血管成为最初的固定高度(例如480px),但如果你在时间上大火,就会扩大规模。

window.fbAsyncInit = function() {
   FB.init({
      appId: window.FB_APP_ID
   });

   FB.Canvas.setSize({ 
      height: 480 // some height shorter than necessary
   });

   setTimeout(function(){
      FB.Canvas.setAutoGrow();
   }, 500);
}

处理:

    FB.Canvas.getPageInfo(
        function(info) {
            // console.log(info);
            if (info.clientHeight< 800) FB.Canvas.setSize({ height: 800 });
        }
    );




相关问题
redirect after adding app to a page

I m working on an app our customers will install on their page. I try to make the following sequence without success : get user permissions let the user choose the page he wants to install the app ...

Facebook app for website

Help me.. I m implementing a web application in my local server and after i will publish my application to download and can use every one.So I need to give a social experience to user with my web ...

Canvas app not being sent signed_request POST parameter

I understood from Facebook s tutorial that someone clicks on your Facebook app and is brought to your app page: http://apps.facebook.com/example_app Then Facebook opens an iframe with your canvas URL ...

Facebook Tab Redirect / Link

<?php // what shall I do??? ?> My big facebook question is, I need to create a tab, similar to the my app tab s with a custom icon etc - which simply redirects to a website outside of ...

New SSL certificate to be in place by 1st October

I have been reading the developer blog on Facebook this morning and stumbled across this article saying that all Canvas pages are to use OAuth and SSL. • an SSL Certificate is required for all ...

热门标签