Visualization: Pie Chart – Google Chart Tools – Google Code

Visualization: Pie Chart – Google Chart Tools – Google Code

Advertisements

「いいね!」したかどうか?

■Step 1
「signed_request.php」を作成する
http://developers.facebook.com/docs/authentication/signed_request/

■Step 2
「index.php」ファイルを作成する
<?php
include_once(‘signed_request.php’);
$fb_data = signed_request($_POST[‘signed_request’],’アプリの秘訣’);
if($fb_data[‘page’][‘liked’]){
include_once(‘fan.html’);
} else {
include_once(‘not_fan.html’);
}
?>

iFrameの高さを調整する

■HTMLのheader内に記述

FB.init({

appId : ‘APP ID’,

status : true, // check login status

cookie : true, // enable cookies to allow the server to access the session

xfbml : true // parse XFBML

});

window.fbAsyncInit = function() {

//FB.Canvas.setSize();

FB.Canvas.setAutoResize();

}

function sizeChangeCallback() {

//FB.Canvas.setSize();

FB.Canvas.setAutoResize();

}

■HTMLのbody内に記述

//FB.Canvas.setSize({width:520,height:1800});

FB.Canvas.setAutoResize();