title: How to set FacebookAutoLogAppEventsEnabled to TRUE in a cordova-ios project using cordova-plugin-facebook4?
body: <p>This is my last resort. </p>
  
  <p>I have a cordova 8 project and I need to integrate Facebook App Event to both Android and Ios. Currently I am using <a href="https://www.npmjs.com/package/cordova-plugin-facebook4" rel="nofollow noreferrer">https://www.npmjs.com/package/cordova-plugin-facebook4</a> (Im actually using version 5 instead of 6 as its compatible with cordova 8) to add Facebook Analytics. I went to build and compiled my cordova project (cordova-ios5) in xCode, everything runs fine and no error except for warnings as below in xCode console log:</p>
  
  <blockquote>
    <p>: Please set a value for FacebookAutoLogAppEventsEnabled. Set the flag
    to TRUE if you want to collect app install, app launch and in-app
    purchase events automatically. To request user consent before
    collecting data, set the flag value to FALSE, then change to TRUE once
    user consent is received. Learn more:
    <a href="https://developers.facebook.com/docs/app-events/getting-started-app-events-ios#disable-auto-events" rel="nofollow noreferrer">https://developers.facebook.com/docs/app-events/getting-started-app-events-ios#disable-auto-events</a>.</p>
    
    <p>: You haven't set a value for FacebookAdvertiserIDCollectionEnabled.
    Set the flag to TRUE if you want to collect Advertiser ID for better
    advertising and analytics results. To request user consent before
    collecting data, set the flag value to FALSE, then change to TRUE once
    user consent is received. Learn more:
    <a href="https://developers.facebook.com/docs/app-events/getting-started-app-events-ios#disable-auto-events" rel="nofollow noreferrer">https://developers.facebook.com/docs/app-events/getting-started-app-events-ios#disable-auto-events</a>.</p>
  </blockquote>
  
  <p>What I like to know is how do you set this settings in cordova , particulary can it be set in the project config.xml file?</p>
  
  <p>Reading the plugin doc, that this should be already defaulted to TRUE but it doesnt look like its being set at all.</p>
  
  <p>With this warning , this might be the reason why iOS users is not showing up in Facebook analytics.</p>
  
  <p>I am a front-end developer who has no clue how cordova is setting this in the background and making a call to native functions.I already spent countless hours searching for this on web, with no luck. Hopefully anyone can shed a light. Thank you. </p>