他们如何从这些网站获取信息?在用户同意的情况下是否有一些常见的方式来公开这些信息?他们如何判断您是否已通过外部网页进行身份验证?是几个不同的 API 吗?
最佳答案
社交网络利用 OAuth 。 引用自维基百科:
OAuth is an open standard for authorization. OAuth provides client applications a 'secure delegated access' to server resources on behalf of a resource owner. It specifies a process for resource owners to authorize third-party access to their server resources without sharing their credentials.
您可以看看这些:
Facebook :https://developers.facebook.com/docs/reference/dialogs/oauth
谷歌:https://developers.google.com/identity/protocols/OAuth2
您可以在此处获取不同语言的库列表:http://oauth.net/2/
关于authentication - 热门网站如何允许您从 Facebook 等其他网站登录?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29619290/