Graph API Version

Crisis

Reading

This entity represents a natural, accidental, or man-made disaster. It powers the Safety Check product as well as others.

Examples

Graph API Explorer
GET /v2.9/{crisis-id} HTTP/1.1
Host: graph.facebook.com
/* PHP SDK v5.0.0 */
/* make the API call */
$request = new FacebookRequest(
  $session,
  'GET',
  '/{crisis-id}'
);
$response = $request->execute();
$graphObject = $response->getGraphObject();
/* handle the result */
/* make the API call */
FB.api(
    "/{crisis-id}",
    function (response) {
      if (response && !response.error) {
        /* handle the result */
      }
    }
);
/* make the API call */
new GraphRequest(
    AccessToken.getCurrentAccessToken(),
    "/{crisis-id}",
    null,
    HttpMethod.GET,
    new GraphRequest.Callback() {
        public void onCompleted(GraphResponse response) {
            /* handle the result */
        }
    }
).executeAsync();
// For more complex open graph stories, use `FBSDKShareAPI`
// with `FBSDKShareOpenGraphContent`
/* make the API call */
FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]
                               initWithGraphPath:@"/{crisis-id}"
                                      parameters:params
                                      HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
                                      id result,
                                      NSError *error) {
    // Handle the result
}];
If you want to learn how to use the Graph API, read our Using Graph API guide.

Parameters

This endpoint doesn't have any parameters.

Fields

FieldDescription

id

numeric string

The id of the object

creation_time

datetime

When this Safety Check instance was created, which is not necessarily the time when the actual event happened. It is best to use the date of this time, not the specific hour

geo_area

CrisisGeoArea

The crisis geo area that this crisis affects

main_location_page

The actual geographic area that encompasses a Safety Check instance can be cities, regions, or countries. However we use one main location page to name the crisis, and usually to center the map

name

string

The name of the Safety Check instance, like "the Flooding in West Virginia". This name is localized to each locale based on the viewer locale

permalink_uri

string

The absolute permalink URI of the Safety Check instance, where users can go to check on their friends or interact with other features

Edges

EdgeDescription

community_help_categories

The categories of community help this crisis has available, useful for rendering filter menus or knowing which values to pass into the category filters later

community_help_posts

These are the posts that offer or request help in the space attached to Safety Check

Validation Rules

ErrorDescription
100Invalid parameter

Creating

You can't perform this operation on this endpoint.

Updating

You can't perform this operation on this endpoint.

Deleting

You can't perform this operation on this endpoint.