Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sending MESSAGE to a person on facebook using python

I want to make a script that can be used to send messages to our friends on facebook. How do I proceed? Which is the best module to use?

like image 450
Abhijeet Rastogi Avatar asked Mar 06 '10 10:03

Abhijeet Rastogi


People also ask

Does Facebook Messenger have an API?

The Messenger Profile API allows you to set, update, retrieve, and delete properties from the Page Messenger Profile.


1 Answers

You may indeed want pyfacebook as another answer suggested, though the URL I'm giving (on github.com) is where the project (esp. its source;-) actually lives.

A simple survey of Python APIs for facebook is here, and it also points to a possibly-simpler but less complete API, if you want to run in Google App Engine, i.e., simplefacebook. pyfacebook does not limit you to App Engine specifically, though it can support it of course.

A pyfacebook tutorial is here -- it even briefly shows how to use it from an interactive interpreter (!), though the bulk of the tutorial is about doing web apps, of course.

like image 91
Alex Martelli Avatar answered Sep 28 '22 04:09

Alex Martelli