7. Update owners
Check for migrated owners
○ (#21) Page ID <old_id> was migrated to page ID
<new_id>. Please update your API calls to the new
ID
Move migrated owners to separate table
Add new owners
9. Expire events
end_time has passed move to another table
False
○ Data might exist
Should have returned False?
○ [100] Unsupported get request
○ Data might exist
12. Datetimes
All in ISO-8601
Events
○ date_format modifier has no effect
○ timezones after "Events Timezone Migration"
○ is_date_only
○ legacy without timezone
13. Batch requests
POST
50 requests in one
Large or complex can time out
Nested calls count towards rate limiting
One top level access token, many nested
14. Batch request example
User's profile and 50 friends
batch=[{
"method":"GET",
"relative_url":"me"
},
{
"method":"GET",
"relative_url":"me/friends?limit=50"
}]
16. Batch dependencies example
Get details of 5 friends
batch=[{
"method":"GET",
"name":"get-friends",
"relative_url":"me/friends?limit=5",
},
{
"method":"GET",
"relative_url":"?ids={result=get-friends:$.data.*.id}"
}]
17. Field expansion
GET
"join" multiple graph queries into a single call
Replacement for FQL
fields, connections, modifiers and identifiers
No JSONPath
18. Field expansion example
User's name and birthday plus id and picture of
the last 10 photos
/me?
fields=
name,
birthday,
photos.limit(10).fields(id,picture)
19. Batch request with field expansions
User's profile and picture link of 10 photos
batch=[{
"method":"GET",
"relative_url":"me"
},
{
"method":"GET",
"relative_url":"me?fields=photos.limit(10).fields(picture)"
}]