Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Automate Facebook page posting

Project Description

Facebook Page Writer

This is a little Django app for publishing in a Facebook page with the credentials of the page. FPW uses facebook-sdk library to post content and get credentials from facebook.


First we need to setup a app in facebook. It's important to set your url in the settings of the app.
Next we need to store de app_id and the app_secret in our settings.py_


Once the app is set, we need to get the long term access_token. For that you have to access to the url in which you have installed FPW and login with your FB user (this user must have manage_page permision in the page you want to post)
FPW stores acces token and check expiration before posting. If access_token is expored, FPW sends a email to the ADMINS to recreate the token (so check the ADMIN seting and email sending)

Last you have to use the method to post to the desired page. method

def post(page_id, component, message, **kwargs):

- page_id: the id of the page to post to.
- component: connection name to post in the page (feed, event..)
- message: little message
- kwargs must be attrs defined by facebook. Example, for the Post type:

Release History

This version
History Node


History Node


History Node


History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Hash SHA256 Hash Help Version File Type Upload Date
(3.2 kB) Copy SHA256 Hash SHA256
Source Mar 22, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting