开发者

Post to Facebook/Twitter using Django?

开发者 https://www.devze.com 2023-02-04 22:43 出处:网络
Maybe I\'ve already found the answer on Google but I don\'t re开发者_高级运维cognize it so I resort to you guys.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消