facebook-sdk
This client library is designed to support the Facebook Graph API and the official Facebook JavaScript SDK, which is the canonical way to implement Facebook authentication.
What it is and what it does
facebook-sdk is a Python wrapper around Facebook's Graph API, the primary interface for programmatic access to Facebook data and services. It simplifies making authenticated requests to Facebook endpoints by handling the HTTP layer through its single runtime dependency, requests.
The library was designed to work alongside Facebook's official JavaScript SDK for authentication flows. It supports Python 2.7 and Python 3.x as declared in classifiers, though it has not been actively maintained since 2018-11-06. With 2793 GitHub stars and steady download volume, it remains widely used despite its dormant status.
Use it for:
- Retrieve user profile data and social graph information from Facebook accounts after authentication
- Post content, manage pages, or interact with Facebook objects programmatically
- Integrate Facebook login into Python web applications as part of an authentication flow
- Query Facebook Insights data or analytics for pages and apps
- Build bots or automation tools that interact with Facebook's API
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A Python client library for the Facebook Graph API that handles authentication and API requests to Facebook services.
Yes, if you are maintaining legacy code or need a simple, lightweight Graph API client with no active security vulnerabilities. No, if you are starting a new project—the 2018-11-06 release date and dormant status mean it may not support current Facebook API features, authentication methods, or recent Python versions. Verify compatibility with your target Facebook API version before adopting.
Install
facebook-sdk on PyPI
pip
pip install facebook-sdkuv
uv add facebook-sdkpoetry
poetry add facebook-sdkInstalling facebook-sdk
Before you install
Installation is straightforward with minimal dependencies. However, the package is dormant—last release was 2018-11-06, with the most recent commit in 2024-08-02. No active maintenance should be assumed.
License in practice
Licensed under Apache License, version 2.0, a permissive open-source license that allows commercial use, modification, and distribution with minimal restrictions.
Quickstart
pip install facebook-sdk
import facebook
graph = facebook.GraphAPI(access_token='your_token')
profile = graph.get_object('me')
Requires a valid Facebook access token; Graph API credentials must be obtained from Facebook's developer console.
Verify before relying
- Whether the package remains compatible with current Facebook Graph API versions and authentication flows
- Whether Python 3.7+ support is accurate given the 2018 release date and lack of recent updates
Package facts
| License | Apache (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — requests |
| Maintenance | dormant — 2,838 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 461,575/month — #6,532 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: facebook_sdk-3.1.0-py2.py3-none-any.whl
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
facebook-businessProvides Python bindings to Facebook's Business…
unclear · top 5,000 on PyPI
fbmessengerA Python library for sending and receiving…
permissive · top 15,000 on PyPI
fastapi-ssoFastAPI plugin that adds single sign-on (SSO)…
permissive · top 5,000 on PyPI
django-authlibProvides passwordless authentication for Django…
permissive · top 15,000 on PyPI
msgraph-sdkPython client library for calling Microsoft…
permissive · top 5,000 on PyPI
apache-airflow-providers-facebookIntegrates Apache Airflow with Facebook Ads,…
permissive · top 15,000 on PyPI
oneloginOfficial Python SDK for OneLogin's API,…
unclear · top 15,000 on PyPI
fb-idbA command-line and Python client for automating…
permissive · top 15,000 on PyPI
django-analyticalIntegrates multiple third-party analytics…
permissive · top 15,000 on PyPI