How to login in website using facebook id

匿名 (未验证) 提交于 2019-12-03 02:16:02

问题:

I have made a website on which a user has to log in using a username and password. I have seen these in so many website, we can connect through facebook account. And I want to add the same to my web site. How is it possible,using php sdk or the javascript sdk?

回答1:

The team at Facebook has spent considerable time documenting this, I would suggest you start there:

http://developers.facebook.com/docs/guides/web#login
http://developers.facebook.com/docs/authentication/



回答2:

If possible, I would do like dracolytch writes here and create a level of abstraction for both OpenID and Facebook. He is willing to share his code.



回答3:

Those links are what Facebook likes to call "Badges." Go to your profile. Scroll all the way to the bottom. On the lower left hand column you should see a link that says "Create Profile Badge." Click that. From there you can edit a Badge to show the info you'd like. At the end, it will give you some html code that you can copy and paste into another website or blog. When people click on your Badge, they will get sent directly to your Facebook info box. Source(s):

http://www.facebook.com/badges.php



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!