Skip to content

Commit d172ee1

Browse files
author
markzegarelli
committed
DOC-392 add context to Facebook App Events
1 parent e4d6f09 commit d172ee1

File tree

1 file changed

+28
-2
lines changed
  • src/connections/destinations/catalog/facebook-app-events

1 file changed

+28
-2
lines changed

src/connections/destinations/catalog/facebook-app-events/index.md

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,34 @@ Similarly, on Android, you'll need to include the Play Services Ads library as [
251251

252252
Once you have added these, you will start to see the `context.device.advertisingId` populate and the `context.device.adTrackingEnabled` flag set to `true` unless the user has ad tracking limited or is using a mobile ad blocker.
253253

254-
_Note_: While the network is deprecated, the relevant iOS [framework](https://developer.apple.com/reference/iad) is not.
255-
254+
> note ""
255+
> While the network is deprecated, the relevant iOS [framework](https://developer.apple.com/reference/iad) is not.
256+
257+
Facebook requires that payloads include the following:
258+
- `context.device.id`
259+
- `context.device.type`
260+
- `context.os.version`
261+
262+
For example:
263+
264+
```json
265+
{
266+
"anonymousId": "507f191e810c19729de860ea",
267+
"event": "Event Name",
268+
​ "context": {
269+
"device": {
270+
"id": "B5372DB0-C21E-11E4-8DFC-AA07A5B093DB",
271+
"type": "ios"
272+
},
273+
"os": {
274+
"version": "8.1.3"
275+
}
276+
},
277+
"messageId": "bbac-11e4-8dfc-aa07a53436b09b45567i8245237824",
278+
"type": "track",
279+
"userId": "97980cfea0067"
280+
}
281+
```
256282

257283
### Missing custom events
258284

0 commit comments

Comments
 (0)