简体   繁体   中英

Facebook PHP SDK (v.3.1.1) questions

I have recently downloaded the Facebook PHP SDK to try and post to a Facebook user's wall.

My Facebook user is currently logged in but has not used my app.

$user = $facebook->getUser();
if ($user) {
 // user is logged in

} else {
 // user is not logged in
   $url = $facebook->getLoginUrl(array('next' => 'http://localhost.com/php-sdk/examples/example.php'));
   header("Location: $url");
}

I've noticed that it redirects me to a page where it requires me to log into the app, which is kinda weird as this is the first time i have seen this behavior, it says "You are logging into DummyFBApp as User" at the bottom. Whenever i try to use other fb apps it only ask me for permissions to access my information, post, etc.

Is it possible to skip this "login" and only show the dialog whether to allow the app to post to the user wall?

您的服务器端,而不是使用JS SDK,但无论如何,请看一下: Facebook权限对话框(JavaScript sdk)

Pretty sure that is the new auth dialog. There should be an option under settings -> advanced in the Facebook app setup that allows you to turn it off for the time being.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM