I am getting the data and insgihts from the post of a certain Facebook page like this:
node = '/' + page_id +'?fields=posts.limit(100).since(' + str(since) + ').until(' + str(until) + '){id,link,created_time,message,type,permalink_url,'+'insights.metric('+['Array of metrics']+').period(lifetime)}'
url = base + node
parameters = {'access_token': token, 'limit': '100'}
object1 = requests.get(url, params=parameters).text.encode('utf-8')
This works as expected but only if i ask for recent dates, if i want to get the post of a certain day 7 days ago or more, it starts sampling. I try using the API Graph Explorer but it gives me the same result as my code. I use Unixtime as Facebook ask for.
Does anyone know why fb API graph does this "Sampling"?