Skip to main content
Question

Question about FBAnonymousID handling with Meta SDK + RevenueCat

  • September 30, 2025
  • 1 reply
  • 22 views

Forum|alt.badge.img

Hey everyone,

I’m integrating the Meta SDK with RevenueCat and I have a question about how to handle FBAnonymousID.

Right now, I grab the FBAnonymousID from the Meta SDK and then pass it manually into the RevenueCat SDK in my code. From what I understand, this value is generated per device.

In my login flow, I set the appUserId in RevenueCat based on a value from my backend.

Here’s the part I’m not sure about:

  • When a user logs in, I update the appUserId in RevenueCat.

  • The FBAnonymousID, however, stays the same (since it’s tied to the device).

My question is: is it okay that different RevenueCat users on the same device share the same FBAnonymousID? Or should I be re-generating a new one during the login process to avoid mixing analytics?

Has anyone else run into this or figured out the best practice?

This post has been closed for comments

1 reply

alejandra-wetsch
RevenueCat Staff
Forum|alt.badge.img+6

Hey ​@rodrigorvn

Thank you for reaching out!

My question is: is it okay that different RevenueCat users on the same device share the same FBAnonymousID? 

Yes, that’s ok! As you mentioned, since the FBAnonymousID is generated per device, it would be acceptable for users using the same device to have the same value. There is no need to regenerate after login, as rotating this ID could harm attribution in Meta. 

I hope this helps!