Facebook Graph App Events API (query string) (facebook/graph-activities-qs
)
operated by: Facebook
(get company information on datarequests.org)The Graph API is provided by Facebook to “get data into and out of the Facebook platform”. It can be accessed through the Facebook SDKs for Android and iOS .
The App Events endpoint allows developers to “track actions that occur in [a] mobile app or web page such as app installs and purchase events” in order to “measure ad performance and build audiences for ad targeting”. The Facebook SDK automatically logs app installs, app sessions, and in-app purchases using this endpoint. Additionally, developers can manually log their own events.
Endpoint URLs
These are URLs or regexes of endpoints the tracker sends data to. We use these to determine which adapter to apply to a request. Some trackers use the same endpoint for several formats. In this case we use additional logic to match the adapter to the request, refer to the code for more information./^https:\/\/graph\.facebook\.com\/v\d{1,2}.\d\/\d+\/activities$/
Decoding steps
Every tracking library has its own way of transmitting tracking data, often even several. They are regularly pretty convoluted, nested encoding schemes. Because of that, the adapter needs to decode the request information into a consistent format. We try to keep keys and paths intact, but the structure results from our decoding. All steps used in the decoding for this adapter are documented here.- Parse the request body as a query string. Store that in the result for the request body.
- Parse the result for the request body at
extinfo
as JSON. Replace the existing value.
1res.body = parseQueryString(body)
2res.body.extinfo = parseJson(res.body.extinfo)
Observed data transmissions
This is data that we observed being transmitted by this tracker. Not every request contains all of this data. The context of the data describes where we found the data in the request, the path describes the location of the data in the decoded request. The examples are a selection of observed values.References
- Documentation for
advertiser_id
: https://developers.facebook.com/docs/graph-api/reference/v17.0/application/activities - Documentation for
extinfo.1
: https://developers.facebook.com/docs/graph-api/reference/v17.0/application/activities - Documentation for
extinfo.2
: https://developers.facebook.com/docs/graph-api/reference/v17.0/application/activities - Documentation for
extinfo.3
: https://developers.facebook.com/docs/graph-api/reference/v17.0/application/activities - Documentation for
extinfo.8
: https://developers.facebook.com/docs/graph-api/reference/v17.0/application/activities - Documentation for
device_token
: https://developers.facebook.com/docs/graph-api/reference/v17.0/application/activities - Documentation for
extinfo.14
: https://developers.facebook.com/docs/graph-api/reference/v17.0/application/activities - Documentation for
extinfo.13
: https://developers.facebook.com/docs/graph-api/reference/v17.0/application/activities - Documentation for
extinfo.6
: https://developers.facebook.com/docs/graph-api/reference/v17.0/application/activities - Documentation for
extinfo.5
: https://developers.facebook.com/docs/graph-api/reference/v17.0/application/activities - Documentation for
extinfo.4
: https://developers.facebook.com/docs/graph-api/reference/v17.0/application/activities - Documentation for
extinfo.10
: https://developers.facebook.com/docs/graph-api/reference/v17.0/application/activities - Documentation for
extinfo.9
: https://developers.facebook.com/docs/graph-api/reference/v17.0/application/activities - Documentation for
extinfo.7
: https://developers.facebook.com/docs/graph-api/reference/v17.0/application/activities - Documentation for
extinfo.15
: https://developers.facebook.com/docs/graph-api/reference/v17.0/application/activities - Documentation for
app_user_id
: https://developers.facebook.com/docs/graph-api/reference/v17.0/application/activities