[{"event_name":"CompleteRegistration","event_time":1647028101,"action_source":"website","user_data":{"fb_login_id":12345}}]
GraphRequest request = GraphRequest.newPostRequest(
accessToken,
"/1989289168016749/events",
new JSONObject("{\"data\":\"[{\\\"event_name\\\":\\\"API MASTER\\\",\\\"event_time\\\":1647541009,\\\"action_source\\\":\\\"email\\\",\\\"event_id\\\":null,\\\"event_source_url\\\":null,\\\"opt_out\\\":null,\\\"data_processing_options\\\":null,\\\"data_processing_options_country\\\":null,\\\"data_processing_options_state\\\":null,\\\"user_data\\\":{\\\"em\\\":[null],\\\"ph\\\":[null],\\\"client_ip_address\\\":null,\\\"client_user_agent\\\":null,\\\"ct\\\":[null],\\\"country\\\":[null],\\\"fb_login_id\\\":null,\\\"db\\\":[null],\\\"fn\\\":[null],\\\"ge\\\":[null],\\\"lead_id\\\":null,\\\"ln\\\":[null],\\\"st\\\":[null],\\\"subscription_id\\\":null,\\\"zp\\\":[null],\\\"external_id\\\":[null],\\\"fbc\\\":null,\\\"fbp\\\":null},\\\"custom_data\\\":{\\\"currency\\\":null,\\\"value\\\":null,\\\"content_category\\\":null,\\\"content_ids\\\":null,\\\"content_name\\\":null,\\\"content_type\\\":null,\\\"contents\\\":null,\\\"delivery_category\\\":null,\\\"num_items\\\":null,\\\"order_id\\\":null,\\\"predicted_ltv\\\":null,\\\"search_string\\\":null,\\\"status\\\":null}}]\"}"),
new GraphRequest.Callback() {
@Override
public void onCompleted(GraphResponse response) {
// Insert your code here
}
});
request.executeAsync();
"client_ip_address": null,
"client_user_agent": null,
"ct": [
null
],
"country": [
null
],
"fb_login_id": null,
"db": [
null
],
"fn": [
null
],
"ge": [
null
],
"lead_id": null,
"ln": [
null
],
"st": [
null
],
"subscription_id": null,
"zp": [
null
],
"external_id": [
null
],
"fbc": null,
"fbp": null
},
"custom_data": {
"currency": "brl",
"value": null,
"content_category": null,
"content_ids": null,
"content_name": null,
"content_type": null,
"contents": null,
"delivery_category": null,
"num_items": null,
"order_id": null,
"predicted_ltv": null,
"search_string": null,
"status": null
}
}
]
"test_event_code:" "TEST62788"
}