google-site-verification=GB5kr39DX2IByzpFGTWAhoPkplUI4-03qHE6HeL6I6A
G-3Y4Q61866P
curl -X POST \
--form-string 'data=[{"action_source":"website","event_name":"Purchase","event_time":1735937672,"custom_data":{"currency":"USD","value":142.52},"user_data":{"em":["7b17fb0bd173f625b58636fb796407c22b3d16fc78302d79f0fd30c2fc2fc068"],"ph":[]},"original_event_data":{"event_name":"Purchase","event_time":1735937672}}]'\
-F 'access_token=' \
https://graph.facebook.com///events
{
"data": [
{
"event_name": "Purchase",
"event_time": 1735937672,
"action_source": "website",
"user_data": {
"em": [
"7b17fb0bd173f625b58636fb796407c22b3d16fc78302d79f0fd30c2fc2fc068"
],
"ph": [
null
]
},
"custom_data": {
"currency": "USD",
"value": "142.52"
},
"original_event_data": {
"event_name": "Purchase",
"event_time": 1735937672
}
}
]
}
GraphRequest request = GraphRequest.newPostRequest(
accessToken,
"//events",
new JSONObject("{\"data\":\"[{\\\"event_name\\\":\\\"Purchase\\\",\\\"event_time\\\":1735937672,\\\"action_source\\\":\\\"website\\\",\\\"user_data\\\":{\\\"em\\\":[\\\"7b17fb0bd173f625b58636fb796407c22b3d16fc78302d79f0fd30c2fc2fc068\\\"],\\\"ph\\\":[null]},\\\"custom_data\\\":{\\\"currency\\\":\\\"USD\\\",\\\"value\\\":\\\"142.52\\\"},\\\"original_event_data\\\":{\\\"event_name\\\":\\\"Purchase\\\",\\\"event_time\\\":1735937672}}]\"}"),
new GraphRequest.Callback() {
@Override
public void onCompleted(GraphResponse response) {
// Insert your code here
}
});
request.executeAsync();
top of page
bottom of page