Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我实现了我的 Facebook 登录到我的网站,但我如何知道用户是使用我的登录按钮还是用户通过访问 Facebook.com 登录? 如果他或她没有使用我的 Facebook 登录按钮,我想检测并采取一些措施。我正在使用 Javascript。
只需将参数添加到您用于登录按钮的链接。例如
http://www.example.com/index.php?login=facebook http://www.example.com/index.php?login=custom