0

How to use pagination - Facebook with cursor?

Hi, how can I get all results of this API response?

 

{
  "data": [
    {
      "impressions": "9708",
      "ad_id": "6142546123068",
      "date_start": "2009-03-28",
      "date_stop": "2016-04-01"
    },
    {
      "impressions": "18841",
      "ad_id": "6142546117828",
      "date_start": "2009-03-28",
      "date_stop": "2016-04-01"
    }
  ],
  "paging": {
    "cursors": {
      "before": "MAZDZD",
      "after": "MQZDZD"
    }
  }
}

There is no count pages or count items to be used in MAP function.

 

Thank you,

1 comment

  • 0
    Avatar
    Janice Janczyn

    Hi David,

    We do not support cursor-based pagination so you will have to modify your Facebook API query and your klip formulas to work with data in a single response. This mean s you may need to create multiple Facebook datasources. What does your Facebook API query currently look like?

    Thank you,
                  Janice

Please sign in to leave a comment.