Başvurunuzda ilk erişim sayfanın en üstünde kodunun altına koymak gerekir: Kendi API anahtarı ve gizli anahtar
$facebook = new Facebook($api_key, $secret);
$facebook->require_frame();
$user = $facebook->require_login();
//catch the exception that gets thrown if the cookie has an invalid session_key in it
try
{
if (!$facebook->api_client->users_isAppUser())
{
$facebook->redirect($facebook->get_add_url());
}
}
catch (exception $ex)
{
//this will clear cookies for your application and redirect them to a login prompt
$facebook->set_user(null, null);
$facebook->redirect($iframepath);
}
Put.
ile "uygulamanızı yüklemem için kullanıcıya sor" diyebilirsiniz. Kullanıcının uygulamayı yüklemek için kelimenin tam anlamıyla zorlanması muhtemelen iyi bir şey olmayacaktır! –