我有一個擁有URL的Facebook選項卡應用程序。我想傳遞一些GET參數的URL。通常,這是我該怎麼辦簽名的請求獲取用戶數據:從頁面選項卡中檢索參數URL
if ($signed_request = parsePageSignedRequest()) {
$config = array(
'appId' => $app_id,
'secret' => $app_secret,
);
$facebook = new Facebook($config);
$ret_obj = $facebook->api('/me', 'GET', array());
$theemail = $ret_obj['email'];
$thename = $ret_obj['name'];
$theusername = $ret_obj['username'];
}
我想知道如何從URL中的GET參數。該網址看起來像:
https://www.facebook.com/pages/Msomepagey/23023424231927?sk=app_518726691484563&user=someuser
我想要得到的值user
。
任何想法?
它不工作使用'$ _GET ['user']'? –