skillfed

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.

facebook-sdk v3.1.0 461.6K downloads/30d#6,532 on PyPI2,793
Permissive license Apache DORMANT released

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-sdk

uv

uv add facebook-sdk

poetry

poetry add facebook-sdk

Installing 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

License :: OSI Approved :: Apache Software LicenseProgramming Language :: PythonProgramming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7

Tags

facebook graph api clientfacebook authentication pythonfacebook sdk pythonfacebook api wrapperfacebook login integrationfacebook graph requestsfacebook python library
facebook-integrationsocial-media-apilegacy-maintained

More WWW/HTTP packages