这里的代码
$facebook = new Facebook(
array (
'appId' => $app_id,
'secret' => $secret,
)
`enter code here`);
$user = $facebook->getUser();
if (!$user) {
$loginUrl = $facebook->getLoginUrl(
array(
'redirect_url', $app_url // SI ! sono due elementi, non è un array associativo !
)
);
echo $loginUrl;
} else {
try {
$user_profile = $facebook->api('/me');
echo "<pRE>" . print_r ($user_profile, true) . "</PRE>";
$nome_completo = $user_profile["name"];
$nome = $user_profile["first_name"];
$cognnome = $user_profile["last_name"];
} catch (FacebookApiException $e) {
echo $e;
$user = null;
}
}
当我启动https://apps.facebook.com/575262285841594/(实际上应用程序处于沙盒模式!!!!)我获得了一个工作(无用)应用程序,但是......每次 Firefox 警告我关于 https 的页面但我通过不安全的传输发送...
我必须怎么做才能避免这种情况!?