facebookarchive / react-native-fbsdk

A React Native wrapper around the Facebook SDKs for Android and iOS. Provides access to Facebook login, sharing, graph requests, app events etc.
https://developers.facebook.com/docs/react-native
Other
2.99k stars 908 forks source link

Cant send advertiser_id with custom events #599

Closed 1pocketaces1 closed 3 years ago

1pocketaces1 commented 5 years ago

🐛 Bug Report

I am trying to send custom events using AppEventsLogger.logEvent() to record actions in my app, but the Analytics is not registering unique users with those custom events logged. I found here that we need to include the advertiser_id with custom events. However, I cannot find a way to access this in React Native. I have used react-native-device-info but this only gives the IDFV on iOS and I am needing the IDFA. Is there a way to access this through the FBSDK?

On a related note, the AppEventsLogger would be much more powerful if it exposed more Standard Events such as ViewContent.

To Reproduce

Send a custom event using AppEventsLogger.logEvent()

Expected Behavior

Expected to be able to target a lookalike audience with ads based on custom events in app.

Environment

react native: 0.58.3 react native fbsdk: 0.10.1

nes123 commented 4 years ago

+1