This document refers to a feature that was removed after Graph API v2.9.
Graph API Version

URL /?id={url}

Represents an external URL as it relates to the Facebook social graph - shares and comments from the URL on Facebook, and any Open Graph objects associated with the URL.

Reading

Graph API Explorer
GET /v2.10/?id=http%3A%2F%2Fwww.imdb.com%2Ftitle%2Ftt2015381%2F HTTP/1.1
Host: graph.facebook.com
/* PHP SDK v5.0.0 */
/* make the API call */
$request = new FacebookRequest(
  $session,
  'GET',
  '/',
  array (
    'id' => 'http://www.imdb.com/title/tt2015381/',
  )
);
$response = $request->execute();
$graphObject = $response->getGraphObject();
/* handle the result */
/* make the API call */
FB.api(
    "/",
    {
        "id": "http:\/\/www.imdb.com\/title\/tt2015381\/"
    },
    function (response) {
      if (response && !response.error) {
        /* handle the result */
      }
    }
);
Bundle params = new Bundle();
params.putString("id", "http://www.imdb.com/title/tt2015381/");
/* make the API call */
new GraphRequest(
    AccessToken.getCurrentAccessToken(),
    "/",
    params,
    HttpMethod.GET,
    new GraphRequest.Callback() {
        public void onCompleted(GraphResponse response) {
            /* handle the result */
        }
    }
).executeAsync();
// For more complex open graph stories, use `FBSDKShareAPI`
// with `FBSDKShareOpenGraphContent`
NSDictionary *params = @{
  @"id": @"http://www.imdb.com/title/tt2015381/",
};
/* make the API call */
FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]
                               initWithGraphPath:@"/"
                                      parameters:params
                                      HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
                                      id result,
                                      NSError *error) {
    // Handle the result
}];

Permissions

  • Any access token can be used to make this request. However, an app_access_token or user_access_token is needed for engagment field requests.

Fields

Property NameDescriptionType

id

The URL itself.

string

og_object

The Open Graph object that is canonically associated with this URL.

OGObject

id

ID of object.

string

description

The description of the object.

string

title

The title of the object.

string

type

The object type.

og:type

updated_time

When the object was last updated.

datetime

app_links

AppLinks data associated with this URL.

AppLinks

engagement

Engagements associated with this URL.

object

reaction_count

The sum of reactions across all posts containing the URL on Facebook.

number

comment_count

The sum of comments on posts containing this URL on Facebook.

number

share_count

The total shares of this URL all over Facebook.

number

comment_plugin_count

The number shown in the comments plugin associated with the URL. This number does not include comments made on posts on Facebook.

number

Publishing

You cannot publish this info via the Graph API.

Deleting

You cannot delete this info via the Graph API.

Updating

You cannot update this info via the Graph API.