开发者

Retrieve Facebook-email in one click

I have a webpage, and I want to retrieve the e-mail people use for Facebook. How can I create a button on my page, which asks the users for permission to just give me their e-mai开发者_Python百科l, and then loads their e-mail into my PHP-script?


You can put up this link:

<a href="https://graph.facebook.com/oauth/authorize?type=user_agent&client_id=APP_ID
&redirect_uri=http://yourwebsite.com/fbaccess.php
&scope=email">
Add Facebook
</a>

You need to replace APP_ID above, with your application id.

Check out the full tutorial here:

http://www.9lessons.info/2011/01/facebook-graph-api-connect-with-php-and.html

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜