O'Reilly logo

Facebook Cookbook by Jay Goldman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Getting Allocations

Problem

I need to retrieve my allocations from Facebook so that I know how many Notifications I can send out per day.

Solution

Use the Admin.getAllocations() method:

$allocation = $facebook->api_client->admin_getAllocation('notifications_per_day');

Discussion

This method supports retrieving a number of different allocations, as shown in Table 9-3.

Table 9-3. Allocations

Allocation

Description

notifications_per_day

Number of Notifications your application can send per user per day

requests_per_day

Number of requests your application can send per user per day

emails_per_day

Number of email messages your application can send to a user per day

email_disable_message_location

Location of the disable message within emails sent by your application (“1” is at the bottom and “2” is the top)

For more information about allocations, see Understanding Allocations.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required