Easy Facebook Scripting in Python
blog.carduner.net
Easy Facebook Scripting in Python
1–8 of 8 posts
Re: Easy Facebook Scripting in Python
#2Re: Easy Facebook Scripting in Python
#3> i would like to work in PHP command line code
Just, just no. PHP has many uses, but the command line isn't one of them.
Also I don't think pulling in a script over HTTP is such a great idea, I know it was done for simplicity but why not tell people to download the script first and save it alongside their main script, then just use an 'import filename'.
Now what would be useful, and could probably justify pulling in a module from remote, is if it kept up with Facebook API changes.
Re: Easy Facebook Scripting in Python
#4Re: Easy Facebook Scripting in Python
#5Python is powerful for hackers because of introspection. You can pull up a shell and all of the documentation is available with type() and dir() and iPython's tricks. An API that takes actions as strings fails for Python.
Re: Easy Facebook Scripting in Python
#6This, and previous FB APIs, seem to really be lacking. For a Python API, for instance, you shouldn't be calling generic 'graph' functions and then passing strings to tell it what to do. If you want to do that, you might as well just construct the URL yourself. Python is powerful for hackers because of introspection. You can pull up a shell and all of the documentation is available with type() and dir() and iPython's…
Re: Easy Facebook Scripting in Python
#7The way he imports the module is just crazy. Just download the file and import it normally.
Re: Easy Facebook Scripting in Python
#8The way he imports the module is just crazy. Just download the file and import it normally.
Every step you add to the process cuts down on the number of people who are willing to try it out. Obviously once you determine whether it's useful to you or not, you can do the right thing and just download the file.