<Warning>: 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.” warning msg fix

(FB, FacebookAutoLogAppEventsEnabled, FacebookAdvertiserIDCollectionEnabled, warning msg fix)

App有串接FB SDK,提供FB登入
開啟APP時初始化很久,並出現下圖之提示訊息

<Warning>: 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: https://developers.facebook.com/docs/app-events/getting-started-app-events-ios#disable-auto-events.

<Warning>: 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.

可以參考本文進行除錯

ㄈㄢinfo.plist按右鍵,透過Source Code 開啟

將下方設定貼至最後

 <key>FacebookAutoLogAppEventsEnabled</key>
<string>TRUE</string>
<key>FacebookAdvertiserIDCollectionEnabled</key>
<string>TRUE</string>

返回Info.Plist畫面,出現FacebookAutoLogAppEventsEnabledFacebookAdvertiserIDCollectionEnabled設定

--

--