Advanced Guides for Graph API

Targeting Options

Some content published via the Graph API can be targeted to general demographic groups. This guide shows you how to retrieve the valid options which are available for targeting.

Making Multiple API Requests

If your application needs to access significant amounts of data in a single request, or you need to make changes to several objects at once, it is often more efficient to batch your queries rather than make multiple individual HTTP requests.

Securing your API Requests

Almost every Graph API call requires an access_token. Malicious developers can steal access tokens and use them to send spam from your app. Facebook has automated systems to detect this, but you can help us secure your app by adding extra parameters to API requests. This document explains how.

Receiving API Updates with Webhooks

Webhooks, formerly known as Real-time Updates enable your app to subscribe to changes in data relating to User, Page, Payment, and many objects available via the Graph API. By subscribing to real-time update APIs, your app can cache data and receive updates as they occur, rather than continuously polling Facebook's servers. Caching data and using this API can improve the reliability of your app and decrease its load times.

Video Upload

The v2.3 video upload API shares the same /videos endpoint as before. As of 2.3+ it now enables you to send chunked uploads with three different types of requests: start, receive, and post. For more information see Video Upload with Graph API and Graph API Reference, Video.

Localization and Translation

Facebook supports localization of apps. Read about the tools we provide.

Aliasing Fields

You can use the as parameter to provide aliases for fields returned by Graph API.