我正在嘗試使用php生成隨機引號的Facebook應用程序。但是,我收到這個錯誤,我不知道如何排序。在服務器上使用PHP的Facebook應用程序問題
解析錯誤:語法錯誤,在/home/a9607557/public_html/index.php意外T_STRING上線8
這是我的代碼:
<?php require_once 'includes/facebook.php';
$appapikey = '<Hash>';
$appsecret = '<Hash>;
$facebook = new Facebook($appapikey, $appsecret);
$user_id = $facebook->require_login();
$callbackurl = 'http://newuser.hostei.com/';
//initialize an array of quotes $quotes= array("Hello World.", "Yes", "New");
//Select a Random one. $i= rand(0, sizeof($quotes)-1);
我敢肯定這個問題必須在這些代碼行中。 感謝您的幫助。
也許不是很大,你是給我們您的AppSecret和你AppAPIKey .... – 2010-03-07 16:43:30