0

我正在尝试找到一种方法来允许用户使用 facebook 登录按钮登录到我的 django 网站。(https://developers.facebook.com/docs/reference/plugins/login/)我找到了一种使用 OAuth 登录的方法,但我找不到让 facebook 登录按钮使用 OAuth 而不是 SDK 的方法,或将 SDK 挂接到 django 社交身份验证应用程序之一。

我尝试了几个顶级的身份验证插件,它们要么根本不起作用,要么只使用 OAuth 并且不支持登录按钮。

4

1 回答 1

1

I think that login through the facebook javascript SDK would not be able to set any session info on the django backend . DO be able to complete the django login process you will have to do that as well.

Could you possibly make an ajax request in the callback of javascript login and run the django backend login code such that you are also able to set django session info .

I should warn you this may not work at all because of CORS .

于 2013-04-07T04:57:53.420 回答