开发者

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"
));
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜