graph

graph

operated by: Facebook (get company information on datarequests.org)

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$/

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.
  1. Parse the request body as JSON. Store that in the variable b.
  2. Parse the property at JSONPath batch in the variable b as JSON. Store that in the variable batch.
  3. Get the property at JSONPath relative_url for every element in the variable batch. Store that in the variable relativeUrls.
  4. Parse every element in the variable relativeUrls as a query string. Store that in the result for the request body at batch.
  5. Get the property at JSONPath batch_app_id in the variable b. Store that in the result for the request body at batch_app_id.
1b = parseJson(body)
2batch = parseJson(b.batch)
3relativeUrls = getProperty.map(batch, {"path":"relative_url"})
4res.body.batch = parseQueryString.map(relativeUrls)
5res.body.batch_app_id = getProperty(b, {"path":"batch_app_id"})

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.
PropertyContextPathExamples of observed values
Device advertising IDbodybatch.*.advertiser_id00000000-0000-0000-0000-000000000000
OS namebodybatch.*.platformios
bodybatch.*.sdkios
OS versionbodybatch.*.os_version14.8
14.8.0
Other identifiersbodybatch.*.anon_idXZA1964B79-5236-4744-B9B0-F910F28BEBCD
XZABCB7B81-9419-4A93-9DE4-ED3EC44F81E4
XZ7587BD00-BD1B-4864-8F14-C1D90D2DB000
XZ5D90BBDC-24B4-4BAC-B23D-D7177749FC4F
XZ21C85A45-8805-4857-A30A-AEE04A9B044F
Tracker SDK versionbodybatch.*.sdk_version11.1.0
12.3.2
12.1.0
8.2.0
8.0.0