I'm trying to debug my iOS app that integrates with Facebook iOS SDK 4.1. I would like to see a verbose log of Facebook's code. Is there a way to do that? Right now I don't see any log from Facebook. Thanks!
How to enable logging everyting in Facebook iOS SDK for debugging purposes?
Asked Answered
As stated in the documentation, you can enable debug logs by invoking the following method:
[FBSDKSettings enableLoggingBehavior:FBSDKLoggingBehaviorAppEvents];
Swift 5:
Settings.enableLoggingBehavior(.appEvents)
As of Oct 2019 - It;s now
Settings.enableLoggingBehavior(.appEvents)
–
Nica Settings.shared.enableLoggingBehavior(.appEvents)
–
Brandabrandais Enable debug logs to verify client-side app event usage using the following code. The debug logs contain detailed requests and responses formatted in JSON.
If you are using Swift language then
SDKSettings.enableLoggingBehavior(.AppEvents)
If you are working in Objective-C then you can use this below method to enable debug.
[FBSDKSettings enableLoggingBehavior:FBSDKLoggingBehaviorAppEvents];
This is only for debugging purpose. Please make sure to disable debug logs before deploying app in production.
© 2022 - 2024 — McMap. All rights reserved.
SDKSettings.enableLoggingBehavior(.appEvents)
– Penetrating