analytics-react-native icon indicating copy to clipboard operation
analytics-react-native copied to clipboard

Does this library include Facebook App Events?

Open kyangy opened this issue 7 years ago • 4 comments

I have included the Facebook App ID in segment and the docs say that whenever you track/screen it should automatically send to Facebook without any additional installs, etc. However, I haven't been able to see any events coming through on the facebook side but see it only in segment. Any clues?

kyangy avatar Dec 22 '17 18:12 kyangy

Talking with segment, they are saying I should be passing an advertisingId to Segment within a context object. How might I do this?

 "context": { "active": true,
    "app": { "name": "InitechGlobal",
      "version": "545",
      "build": "3.0.1.545",
      "namespace": "com.production.segment" },
    "device": { "id": "B5372DB0-C21E-11E4-8DFC-AA07A5B093DB",
      "advertisingId": "7A3CBEA0-BDF5-11E4-8DFC-AA07A5B093DB",
      "adTrackingEnabled": true,
      "manufacturer": "Apple",
      "model": "iPhone7,2",
      "name": "maguro",
      "type": "ios",
      "token": "ff15bc0c20c4aa6cd50854ff165fd265c838e5405bfeb9571066395b8c9da449"}
}

kyangy avatar Jan 05 '18 19:01 kyangy

Hi @kyangy

I'm just starting to setup Facebook App Events on our app. Did you find any solution to pass an advertisingId to Segment ?

jmeiss avatar Jun 13 '18 16:06 jmeiss

@jmeiss I created a native module using Android's AdvertisingIdClient class to grab the ADID and then I include it within the context like this

context: {
  device: {
    advertisingId: adid
  }
}

kyangy avatar Jun 13 '18 17:06 kyangy

@kyangy sounds good, would you mind sharing some code?

jmeiss avatar Jun 14 '18 08:06 jmeiss