Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
182 views
in Technique[技术] by (71.8m points)

Fixed width in facebook fanpage

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

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

1 Reply

0 votes
by (71.8m points)

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 !


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...