How to status update on twitter in django with Oau

2019-03-05 04:06发布

I added my web site twitter login thanks to omab's social_auth project. It works well.

But I want make the authenticated users share twits on my web site possible .

How can I do this requirement?

Any helps and ideas will be appreciated.

1条回答
Explosion°爆炸
2楼-- · 2019-03-05 04:22

I am not sure about social_auth, but django-allauth stores (and updates) the token on each login, over at:

https://github.com/pennersr/django-allauth/blob/master/allauth/socialaccount/models.py#L82

Then it is simply a matter of feeding that token to e.g. Tweepy (http://tweepy.github.com) in order to post a tweet on behalf of the user.

查看更多
登录 后发表回答