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 |
|---|---|
| Number of Notifications your application can send per user per day |
| Number of requests your application can send per user per day |
| Number of email messages your application can send to a user per day |
| 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.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access