开发者

Post to Facebook/Twitter using Django?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜