Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to opt out from Facebook SDK event logging?

Tags:

I'm using Facebook App Events tracking for Android, but I have no idea how to disable tracking when a user wants to opt out! Does anyone know how to do that?

The documentation says:

We recommend that you use our SDK tools to offer the opt-out.

But they don't actually describe it anywhere. Classic Facebook move.

EDIT: Now with the GDPR being in effect for so long, they still don't have any way to disable all tracking until the user consents, do they?

like image 550
0101100101 Avatar asked Oct 12 '16 08:10

0101100101


People also ask

How do I disable Facebook SDK?

Disable Automatically Logged Events In this case, call the setAutoLogAppEventsEnabled() method of the FacebookSDK class and set to true to re-enable event logging after the end-user provides consent. setAutoLogAppEventsEnabled(true);

Do I need the Facebook SDK?

Can I run mobile app ads without using the SDK? Yes, we allow anyone to run mobile app install ads from our Ads Create Tool simply by dropping the link to their Apple App Store or Google Play URL. For mobile app engagement ads, you will need to register your app, but can also run ads without the SDK.

What data does Facebook SDK collect?

The Facebook SDK collects the following information when you use Facebook Login: App Events: This covers generic App Events (e.g. App Install, app launch) and other standard logging for product metrics (e.g. SDK loading and SDK performance). Note that some of these events (e.g. App Installs, app launches etc.)


1 Answers

Don't know about per User, but you can opt put from Facebook SDK event logging:

Add this int your Android.Manifest.xml:

<meta-data android:name="com.facebook.sdk.AutoLogAppEventsEnabled"             android:value="false"/> 
like image 180
Bhavana Vadodariya Avatar answered Sep 22 '22 12:09

Bhavana Vadodariya