APIs and SDKs

Find out how our APIs work and integrate our products quickly using SDKs for common languages and platforms.

Our APIs

Graph API

The primary way for apps to read and write to the Facebook social graph. Access Pages, Users, Posts, Groups, Events and more.

Marketing APIs

The Marketing APIs offer programmatic access to manage your Facebook ad campaigns, Custom Audiences, and reports.

Our Official SDKs

Facebook SDK for Android

Track installs and app opens, give people the ability to share content, or support the ability to Login with Facebook.

Facebook SDK for iOS

The easiest way to track the success of your App Ads, implement powerful sharing or let people log into your app with Facebook.

Facebook SDK for JavaScript

A rich set of client-side functionality for adding Social Plugins, making API calls and implementing Facebook Login.

Facebook SDK for PC Games

Helps you connect your players with the best gaming communities through friend finding, live video and more.

Facebook SDK for PHP

A modern, native library for accessing the Graph API and taking advantage of Facebook Login.

Facebook Business SDK

If you're using the Ads API, this Facebook SDK for PHP makes it easy to manage your Facebook ad campaigns, Custom Audiences, and reports.

Facebook SDK for React

Helps you build engaging social apps using JavaScript that run natively on mobile platforms.

Facebook SDK for Swift

With the Facebook SDK for Swift, you gain a swift-taylored experience for all of the core Facebook SDK for iOS's APIs.

Facebook SDK for tvOS

With the Facebook SDK for tvOS you can build great social experiences on Apple TV.

Facebook SDK for Unity

Integrate social features in your cross-platform Unity games quickly and easily.

Third-party SDKs

Whilst Facebook provides official SDKs for iOS, Android, Unity, JavaScript and PHP, there are a wide range of unofficial, third-party SDKs for a range of other languages and frameworks built by amazing communities of active developers.

Inclusion in this list is not an endorsement or recommendation by Facebook. In addition, such inclusion is not intended to imply, directly or indirectly, that these organizations endorse or have any affiliation with Facebook. Feedback and bugs should be directed to their representative authors.

Cocos2d-x

Django

Flash

HTML5

Java

JavaScript

Lua

Windows SDK

Node.js

Objective-C

Qt

Ruby

V-Play

WinJS