{"id":21662632,"url":"https://github.com/codesyntax/facebookpagewriter","last_synced_at":"2026-05-14T23:11:47.761Z","repository":{"id":28220221,"uuid":"31724527","full_name":"codesyntax/facebookpagewriter","owner":"codesyntax","description":"Automate Facebook page posting","archived":false,"fork":false,"pushed_at":"2019-06-17T13:19:58.000Z","size":25,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-02-26T03:23:38.083Z","etag":null,"topics":["django","facebook","pages","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codesyntax.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-05T16:48:02.000Z","updated_at":"2024-04-08T02:58:41.000Z","dependencies_parsed_at":"2022-09-09T03:00:11.501Z","dependency_job_id":null,"html_url":"https://github.com/codesyntax/facebookpagewriter","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codesyntax%2Ffacebookpagewriter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codesyntax%2Ffacebookpagewriter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codesyntax%2Ffacebookpagewriter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codesyntax%2Ffacebookpagewriter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codesyntax","download_url":"https://codeload.github.com/codesyntax/facebookpagewriter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244560372,"owners_count":20472219,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["django","facebook","pages","python"],"created_at":"2024-11-25T10:17:28.980Z","updated_at":"2025-10-08T23:57:56.135Z","avatar_url":"https://github.com/codesyntax.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Facebook Page Writer\n====================\n\n.. image:: https://travis-ci.org/codesyntax/facebookpagewriter.svg?branch=master\n    :target: https://travis-ci.org/codesyntax/facebookpagewriter\n\n.. image:: https://coveralls.io/repos/github/codesyntax/facebookpagewriter/badge.svg?branch=master\n    :target: https://coveralls.io/github/codesyntax/facebookpagewriter?branch=master\n\n.. image:: https://landscape.io/github/codesyntax/facebookpagewriter/master/landscape.svg?style=flat\n    :target: https://landscape.io/github/codesyntax/facebookpagewriter/master\n    :alt: Code Health\n\n.. image:: https://img.shields.io/badge/python-2.7-blue.svg\n    :target: https://badge.fury.io/py/facebookpagewriter\n    :alt: Latest Python 2 version\n\n.. image:: https://img.shields.io/badge/python-3.6-blue.svg\n    :target: https://badge.fury.io/py/facebookpagewriter\n    :alt: Latest Python 3 version\n\n.. image:: https://badge.fury.io/py/facebookpagewriter.svg\n    :target: https://badge.fury.io/py/facebookpagewriter\n    :alt: Latest PyPI version\n\n.. image:: https://requires.io/github/codesyntax/facebookpagewriter/requirements.svg?branch=master\n    :target: https://requires.io/github/codesyntax/facebookpagewriter/requirements/?branch=master\n    :alt: Requirements Status\n\nThis 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.\n\nUsage\n-----\n\nFirst we need to setup a app in facebook. It's important to set your url in the settings of the app.\nNext we need to store de app_id and the app_secret in our settings.py_\n\n.. code-block:: python\n\n    FB_APP_ID = app_id\n    FB_APP_SECRET = app_secret\n\nOnce 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)\nFPW 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)\n\nLast you have to use the facebookpagewriter.utils.post method to post to the desired page.\n\nfacebookpagewriter.utils.post method\n------------------------------------\n\n.. code-block:: python\n\n    def post(page_id, component, message, **kwargs):\n\nwhere:\n   - page_id: the id of the page to post to.\n   - component: connection name to post in the page (feed, event..)\n   - message: little message\n   - kwargs must be attrs defined by facebook. Example, for the Post type: https://developers.facebook.com/docs/reference/api/post/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodesyntax%2Ffacebookpagewriter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodesyntax%2Ffacebookpagewriter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodesyntax%2Ffacebookpagewriter/lists"}