Maybe I've already found the answer on Google but I don't re开发者_高级运维cognize it so I resort to you guys.
What packages do I need? A tutorial would be awesome. Thanks in advance!
A package such as django-socialregistration
would allow you to authenticate with both.
Alternatively, you could roll your own using one of these:
- Facebook
python-sdk
python-twitter
You want Twython:
https://github.com/ryanmcgrath/twython-django/blob/master/twython_django_oauth/views.py
Believe me, I have been down this road, and the example Django views in the link above are the most straightforward of twitter oauth2 examples.
See also https://github.com/ryanmcgrath/twython
精彩评论