Graph API Version

Audience Insights Page Affinity

Reading

Information about the affinity for a given page.

Examples

Graph API Explorer
GET v2.10/...?fields={fieldname_of_type_AudienceInsightsPageAffinity} HTTP/1.1
Host: graph.facebook.com
/* PHP SDK v5.0.0 */
/* make the API call */
$request = new FacebookRequest(
  $session,
  'GET',
  '...?fields={fieldname_of_type_AudienceInsightsPageAffinity}'
);
$response = $request->execute();
$graphObject = $response->getGraphObject();
/* handle the result */
/* make the API call */
FB.api(
    "...?fields={fieldname_of_type_AudienceInsightsPageAffinity}",
    function (response) {
      if (response && !response.error) {
        /* handle the result */
      }
    }
);
/* make the API call */
new GraphRequest(
    AccessToken.getCurrentAccessToken(),
    "...?fields={fieldname_of_type_AudienceInsightsPageAffinity}",
    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:@"...?fields={fieldname_of_type_AudienceInsightsPageAffinity}"
                                      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

affinity

unsigned int32

Affinity for the page

audience

unsigned int32

Number of people having affinity from your audience

facebook

unsigned int32

Number of people having affinity from the facebook audience

overlap

float

Percentage of overlap between your audience and the base one.

page_id

numeric string

ID of the page

rank

unsigned int32

Rank of the page for your audience

title

string

Title of the page

uri

string

URI of the page

Edges

No edges

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.