I'm trying to build my first facebook app, and it seems that the python facebook (pyfacebook) wrapper is really out of date, and the most relevant functions, like stream functions, are not implemented.
Are there any mature python frontends for facebook? If not, what's the best language for facebook development?
To be able to extract data from Facebook using a python code you need to register as a developer on Facebook and then have an access token. Here are the steps for it. Go to link developers.facebook.com, create an account there. Go to link developers.facebook.com/tools/explorer.
You can like him or not, Mark Zuckerberg is a programmer genius. Either you code on Python, R, C#, Java, C++, or any other programming language; in this article, I referenced top universal advice from Mark Zuckerberg to code like him.
The updated location of pyfacebook is on github. Plus, as arstechnica well explains:
PyFacebook is also very easy to extend when new Facebook API methods are introduced. Each Facebook API method is described in the PyFacebook library using a simple data structure that specifies the method's name and parameter types.
so, even should you be using a pyfacebook version that doesn't yet implement some brand-new thing you need, it's easy to add said thing, as Ryan Paul shows here regarding some of the stream functions (back in April right after they were launched).
Facebook's own Python-SDK covers the newer Graph API now:
http://github.com/facebook/python-sdk/
Try this site instead.
It's pyfacebooks site on GitHub. The one you have is outdated.
If you're a facebook newbie, I'd suggest doing your first couple of apps in PHP. Facebook is written in PHP, the APIs are really designed around PHP (although they are language-neutral, theoretically.) The latest API support and most of the sample code is always in PHP.
Once you get the hang of it, you can definitely write FB apps in other languages, including Python, Actionscript, etc. But my experience with other platforms is that they never work "out of the box" with Facebook the way PHP does.
This is nothing against python! I like the language alot.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With