Pull API \ Retrieve the pages of a Facebook user

Resource/URI @Facebook GET POST PUT DELETE
Retrieve User's Facebook Pages /pull/identities/<identity_token>/facebook/pages.json Retrieve Pages
Resource/URI @LinkedIn GET POST PUT DELETE
Retrieve User's LinkedIn Companies /pull/identities/<identity_token>/linkedin/companies.json Retrieve Companies
Resource/URI @Pinterest GET POST PUT DELETE
Retrieve User's Pinterest Boards /pull/identities/<identity_token>/pinterest/boards.json Retrieve Boards
Resource/URI @YouTube GET POST PUT DELETE
Retrieve User's YouTube Videos /pull/identities/<identity_token>/youtube/videos.json Retrieve Videos

Workflow

Request: the code to send to the API

Send a GET request to the endpoint /pull/identities/<identity_token>/facebook/pages.json to retrieve the pages that the user is currently configured to be an administrator of. The <identity_token> is obtained whenever one of your users connects using Facebook.

To order to use this endpoint the permission Manage Pages (manage_pages) must be enabled in the Facebook settings in your OneAll account and the user must have granted that permission when he logged in with Facebook. You can publish content to a page using our Push API.

Result: the code returned by the API

Response Example

{
  "response": {
    "request": {
      "date": "Fri, 31 Aug 2018 11:02:08  0200",
      "resource": "/pull/identities/2dbac3f7-0bd8-4e75-8def-7de12851b348/facebook/pages.json",
      "status": {
        "flag": "success",
        "code": 200,
        "info": "Your request has been processed successfully"
      }
    },
    "result": {
      "data": {
        "count": 2,
        "entries": [
          {
            "id": "1111111111111111",
            "access_token": "EAACgkGpLn7MBAO6hmFDeY9x8wExYmDHyqq3ZCEKPJFghZBjmyOsrBSZA5ZBu14iqSRxMEqOAIpH9ejthptOml2rQ9B3gPP4kVPqjRgZAzOqRZBOlosgNDmSay1uvRsPzTDTxNFjdXPkboVVvZBFW0ZCSsWx2mxjOoFm8DMsLJQkEnAZDZD",
            "is_published": true,
            "is_permanently_closed": false,
            "name": "Example Company 1",
            "category": "Business Service",
            "link": "https://www.facebook.com/example-company-1/",
            "cover": "https://scontent.xx.fbcdn.net/v/t31.0-8/s720x720/27710182_1111111111111111_7596317803109516070_o.jpg?_nc_cat=0&oh=28f73d9015ef09b47b0a68b4719321ff&oe=5C3A489B",
            "fans": 2362
          },
          {
            "id": "2222222222222222",
            "access_token": "EAACgkGpLn7MBABN3c5SNqWxUP64d1re0pXygezMZCbYBZCTiD95MFZCUWaCjzYBV9NZCWk38ZA32qh1GgDiXPVFtRi7jCWUvk7yEi93rpuL3AE3FGtNadcsmD5qRnYdtMzx8QFMuZA5ir2FpT29nwVzK6vUV70UvB2FuZCRpZC96CgZDZD",
            "is_published": false,
            "is_permanently_closed": false,
            "name": "Example Company 2",
            "category": "Community",
            "link": "https://www.facebook.com/example-company-2/",
            "cover": "https://scontent.xx.fbcdn.net/v/t31.0-8/s720x720/27710182_2222222222222222_7596317803109516070_o.jpg?_nc_cat=0&oh=28f73d9015ef09b47b0a68b4719321ff&oe=5C3A489B",            
            "fans": 1231
          }
        ]
      }
    }
  }
}

User Contributed Notes