2017-12-12 19 views
-1

저는 Facebook 응용 프로그램을 개발했으며 대시 보드의 데이터에서 오프라인 분석을 수행했습니다.게시 메서드를 사용하여 내보내기를 실행하는 데 너무 많은 시간이 걸립니다.

내가 여기에 설명 된 내보내기 API 사용하고 있습니다 :

https://developers.facebook.com/docs/analytics/export 당신의 설명을 따라 수행해야하는 시간은 1-2 시간입니다을하지만 난 그것을 지난 주에 매일을했고, 그것은 약 2 일 걸렸다 각 수출품을 다운로드하십시오.

내 응용 프로그램에 많은 양의 데이터가 없으므로 각 내보내기가 작습니다.

내가 잘못하고있는 부분이나 수출 서비스에 문제가 있는지 이해할 수 있도록 도와 주시겠습니까?

+1

우리는 당신이 무엇을하고 있는지 알지 못해 어떻게 잘못 됐는지 알 수 있습니까? – WizKid

답변

0
I have Facebook page which I sell there sport clothes. 
Each day I would like to see the following parameters from the traffic: 
- Timezone of the device 
- Device platform - iOS,Android,PC 
- Event_log_time - timestamp at which the event is logged 

I make everyday POST request to https://graph.facebook.com/v2.6/[Application FBID]/analytics_app_events_exports 

with the following data: 
access_token = {my access token} 
start_ts = timestamp, begining of the day 
end_ts = timestamp, end of the day 

Then, after 5 hours I make get request to https://graph.facebook.com/V2.6/[Export FBID]?access_token={app access token}. 

The response I get is: 
"id": "##############", 
"start_ts":"***", 
"end_ts": "***", 
"status": "SCHEDULED", 
"column_names":[***], 
"event_param_names":[{"event_name":[Event name]',"param_names":[Custom param names]}] 


I have noticed that only after 2 Days the respone I get for the get request to https://graph.facebook.com/V2.6/[Export FBID]?access_token={app access token} 
the status is COMPLETED. 

My question is why it takes to long? according to your API it should take about 1-2 hours.