Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I am working on a fanpage where I need to upload whole of the site on the fanpage. It means that the site is completely shown on the fanpage. As you know that the width of the fanpage is maximum 720px. Can there be a way I can shrinkup the site and show it on the fanpage?

Thanks in advance.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
176 views
Welcome To Ask or Share your Answers For Others

1 Answer

the fan page width is not 720px its 520px and to show the website on the fanpage you need to re-design using max width 520px that will solve the problem or you can add the scroll bar at the bottom of the page to navigate horizontally .

If you want to use 2nd method you need to use this code block too

FB.init({ appId : APP_ID, status: true, cookie: true, xfbml: true, oauth:true});

var obj =   new Object;
obj.width=1024;
obj.height=960;
FB.Canvas.setSize(obj);

Using this code block you can set the custom width and height of the page , but if the width exceeds 520px the page will show the scroll bar at the bottom .

Wish you good luck !


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...