how do i connect multiple social auth providers to

2019-03-20 19:36发布

can connect to facebook and twitter, but how do i connect a normal django user to both his facebook and twitter networks, so that the next time he has the option of logging in through any 1 of the 3 and i can utilise information from both the networks.

can the signal :-

allauth.socialaccount.signals.pre_social_login

be used to check if a user is already logged in if yes connect the social account to the django account, but i cant figure out how to go about implementing this in the login view.

1条回答
The star\"
2楼-- · 2019-03-20 20:17

connecting to different social providers turned out to be pretty easy. The same url which was used to login the users to a social provider if accessed inside a users home page( ie the page a normal django user will see after logging in using django auth) links your django profile to the social app profile automatically.

now I am looking into how to use the graph api along with allauth to fetch friend lists, post to wall etc

查看更多
登录 后发表回答