<html>
<head>
<title>Fluid Width HTML Example </title>
</head>
<body style="margin:0; padding:0; border:0; background-color:#000000;width:1500px">
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : 'xxxxxxxxxxxxx',
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true, // parse XFBML
// channelUrl : 'http://www.yourdomain.com/channel.html', // Custom Channel URL
oauth : true //enables OAuth 2.0
});
FB.Canvas.setSize({width:1200});
};
(function() {
var e = document.createElement('script');
e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
e.async = true;
document.getElementById('fb-root').appendChild(e);
}());
</script>
<div id="allContent" style="background-color: #0000FF; height:50%;width:100%">
<div id="output" style="color: #FFFFFF;" />
</div>
</body>
</html>
I would like to expand my canvas page width to 1200, but my code seems fails to work, because the canvas width is still 760 (I did set 'Canvas Width' to fluid in Canvas setting), can anyone tell me what mistakes I'd made? my code is as below:-
Thanks everyone, and have a nice day.