Marketing API Version

Sites

Provides operations to create, read, update and delete Sites.

Read Sites

Permissions

A user access token with Atlas API capability is required to request site details.

Fields

Reading this endpoint returns a single or an array of Site objects with the same fields as the node.

Read Site

You can get details of the sites by making an HTTP GET request.

An example of the request and response:

Request:

https://graph.facebook.com/<API_VERSION>/<SITE_ID>

Response:

{
  "created_date": "2014-08-20T22:43:36+0000", 
  "id": "11002200633000", 
  "last_modified_date": "2014-08-20T22:43:36+0000", 
  "name": "Test Site", 
  "publisher_id": "11002200632400", 
  "url": "http://www.testsite.fr/"
  "version": "1"
}

Curl Example

A curl example to get site details:

curl -G \
  -d 'access_token=<ACCESS_TOKEN>' \
https://graph.facebook.com/<API_VERSION>/<SITE_ID>

Read Publisher Site

You can get details of the sites for a publisher by making an HTTP GET request.

An example of the request and response:

Request:

https://graph.facebook.com/<API_VERSION>/<PUBLISHER_ID>/sites

Response:

{
  "data": [
    {
      "created_date": "2014-08-20T15:43:36-07:00", 
      "id": "11002200633000",  
      "last_modified_date": "2014-08-20T15:43:36-07:00", 
      "name": "Test Site",
      "publisher_id": "11002200632400", 
      "url": "http://www.testsite.fr/"
      "version": "1"
    }
  ]
}

Curl Example

A curl example to get publisher site details:

curl -G \
  -d 'access_token=<ACCESS_TOKEN>' \
https://graph.facebook.com/<API_VERSION>/<PUBLISHER_ID>/sites