https://developers.facebook.com/docs/technical-guides/fql/ FB的sample code跑不起來 原因很簡單 多了些不該出現的字串(accesss token) error: Warning : file_get_contents(https://graph.facebook.com//fql?q=SELECT+uid2+FROM+friend+WHERE+uid1=me()&): failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request in M:\test.php on line 26 改為 <?php $app_id = ''; $app_secret = ''; $my_url = ''; $code = $_REQUEST["code"]; //auth user if(empty($code)) { $dialog_url = 'https://www.facebook.com/dialog/oauth?client_id=' . $app_id . '&redirect_uri=' . urlencode($my_url) ; echo("<script>top.location.href='" . $dialog_url . "'</script>"); } //get user access_token $token_url = 'https://graph.facebook.com/oauth/access_token?client_id=' . $app_id . '&redirect_uri=' . urlencode($my_url) . '&client_secret=' . $app_secret . '&code=' . $code; $access_token = file_get...