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.

Ads API

The Ads API offers programmatic access to manage your Facebook ad campaigns, Custom Audiences, and reports.

Our Official SDKs

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 Android

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

Facebook SDK for Unity

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

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 PHP

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

Facebook Ads SDK for PHP

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.

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

C-Sharp

  • C SDK by Outercurve Foundation

Django

Flash

HTML5

Java

JavaScript

Lua

Node.js

Objective-C

Qt

Ruby

Unity

V-Play

WinJS