Python framework for facebook application development

I would like to ask you about your experience in developing facebook facebook applications in Python. Which of the popular web frameworks for this language, in your opinion, is best suited for this purpose? I know that "best" is a very subjective word, so I am particularly interested in the following:

  • The most commonly used libraries. For example, you can automatically create accounts for new users on Facebook, but at the same time provide an alternate username and password. I need authentication to fit in this beautifully.
  • Facebook applications are generally different from CMS-like sites. They are active. For more complex use cases, some kind of caching for data obtained from the Open Graph API is usually required in order to be able to execute some queries on local data and facebook data right away (for example, join some tables based on friendship relations).
  • I would definitely prefer popular solutions. They just seem a lot more stable and thoughtful. I used to develop a facebook application in Grails, and I liked the architecture and general ideas, the number of errors and the difficulties that I encountered was a bit too much. In addition, Groovy is still a rather exotic development language, and this time I will not work on my own.

I'm not new to Python, but definitely new to web development in Python. Although after experience with Grails and all its twists, I doubt that Python can really scare me.

+6
python facebook
source share
3 answers

I would no doubt go with Django as the easiest and most popular framework for developing any type of web application, if there is a need for a complete stack structure.

In particular, with regard to the Django application universe, it abounds with many active applications, but it also has its drawbacks. There is no standard application for any "one" thing, but there are several applications that will perform basically 90% of everything that is needed. Sometimes the code is poorly written, but most of the time applications work and do what they need to do, so there is almost no need for anyone to plunge directly into the code.

Limiting our capabilities, I was very lucky with Omab Django-Social-Auth , which was absolutely suitable for integration. It required 3 variables in my settings.py and I was running.

The only problem may be that you do not want to use the django.contrib.auth.User model, but if you are not going to use it, I would think twice about this solution :)

To narrow it down even further, pyfacebook is another Facebook integration option. It comes with the djangofb application, so it just crashes, adds to settings.py , and all is well. It even comes with a sample Django application as part of the distribution. I was very lucky with this app, but I still think Omab is much easier to integrate.

Finally, Facebook python-sdk integrates seamlessly from a source perspective, where they simply give you access to their APIs using a simple Python API. However, it seems to be more suitable for AppEngine people, therefore YMMV.

+10
source share

I have been using Django for quite some time. I have been using Jinja2 lately. There is no particular reason, but this is another option.

+1
source share

If you do not want to start Django now. Try learning Flask (which is much easier to get started than Django) and then start building your application using Flask.

0
source share

All Articles