Facebook Developers
DocsToolsSupportNewsApps
Log In
  • Social Plugins
  • Facebook Login
  • Open Graph
  • Facebook APIs
  • Games
  • Payments
  • App Center
  • Media
  • Ads for Apps
  • iOS
  • Android
  • Web
    • Getting Started for Websites
    • Getting Started for Mobile
    • JavaScript SDK
    • PHP SDK
    • More SDKs
    • Facebook for WordPress
  • Technology Partners
Facebook for Web Developers
Drive traffic and engagement for your desktop and mobile web apps.

Getting Started

Integrating your website or web app with Facebook makes it more social. From simple features such as the Like button and other social plugins, to powerful engaging stories with Open Graph and real identity through Facebook Login, the Facebook platform provides the tools you need to get people to your website and keep them coming back.

Facebook for Websites

The Facebook platform enables you to make your website more social. With plugins that let you easily add social features to your website, and dialogs you can use to let your users share your content, you’ll be able to start using the features of the Facebook platform in minutes. By using Facebook Login to sign in users with their real identities, calling the Graph API and using Open Graph to tell stories, your users will be more engaged and more likely to return.

Facebook for Mobile Web Apps

By leveraging the features of the Facebook platform, you can build mobile web apps that are more powerful and more personal. Whether you’re building a responsive web app that works on both desktop and mobile, or a mobile-specific web app, you’ll find features of the Facebook platform that will add help you get and retain users.


SDKs for the web

JavaScript

The Facebook SDK for JavaScript provides a rich set of client-side functionality, including Facebook Login, API access and social plugins.

  • Getting Started
  • Reference

PHP

The Facebook SDK for PHP provides a rich set of server-side functionality for accessing Facebook's server-side API calls.

  • Getting Started
  • Reference

More SDKs

Find the SDK to suit the platform you build on, with the full range of SDKs provided by both Facebook and the community.

  • Ruby
  • Node.js
  • C#


JavaScript SDK Guides

Using the Facebook SDK for JavaScript with jQuery

In this tutorial, you’ll learn how to incorporate the Facebook JavaScript SDK into your jQuery-based web app. Both jQuery and the JavaScript SDK provide their own solutions for deferring code execution until the libraries have loaded, and this tutorial will help you combine the two and ensure both are ready to use before you invoke the SDK.

Using the Facebook SDK for JavaScript with RequireJS

In this tutorial, you'll learn how to incorporate the JavaScript SDK with other JavaScript modules using RequireJS. Ordinarily, the JavaScript SDK isn’t compatible with the Asynchronous Module Definition (AMD) design pattern, so this tutorial covers writing a shim to provide the FB object created by the SDK.

PHP SDK Guides

Get people's profiles with Graph API

This example covers getting profile information for someone using your app or site and printing their name, using the Graph API and Facebook SDK for PHP.

Get people's profiles with FQL

This example covers getting specific profile fields for people using your app or site and printing it using FQL and the Facebook SDK for PHP.

Post a Link using Graph API

This example covers posting a link to the timeline using the Graph API and Facebook SDK for PHP.

Upload a photo to people's profile This example covers uploading a photo to people's profile using the Graph API and Facebook SDK for PHP.

Updated on Monday
Facebook © 2013 · English (US)
AboutAdvertisingCareersPlatform PoliciesPrivacy Policy