Facebook Connect Question
Lets say I do the following line of code to display a login button on my site:
$loginUrl = $facebook->getLoginUrl();
<a href="<?php echo $loginUrl; ?>">
<img src="http://static.ak.fbcdn.net/rsrc.php/zB6N8/hash/4li2k73z.gif">
</a>
If a user logs in through this method, by default which permissions will we have? Is t开发者_StackOverflow社区here a way to specify which permissions you want to have? (Such as getting his birthday, list of friends, gender, photo url, etc)
This is how you add permissions:
$loginUrl = $facebook->getLoginUrl(array(
"scope" => "read_stream,email"
));
精彩评论