FBSDKLog:在初始化Facebook SDK之前无法启动FBSDKGraphRequestConnection [英] FBSDKLog: FBSDKGraphRequestConnection cannot be started before Facebook SDK initialized

查看:611
本文介绍了FBSDKLog:在初始化Facebook SDK之前无法启动FBSDKGraphRequestConnection的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是在使用FBSDKCoreKit 8.1.0(最新)的iOS应用中使用Facebook Analytics(分析)

I just use Facebook Analytics in my iOS app using FBSDKCoreKit 8.1.0 (latest)

此错误消息不断淹没我的日志:

This error message keeps flooding my log:

FBSDKLog: FBSDKGraphRequestConnection cannot be started before Facebook SDK initialized.

我什至不使用Graph API.

I don't even use the Graph API.

我已经根据以下内容设置了所有内容: https://developers.facebook.com/docs/ios/getting-started/

I've set up everything according to: https://developers.facebook.com/docs/ios/getting-started/

关于我如何摆脱这一点的任何想法?

Any idea on how I can get rid of this?

推荐答案

在用户接受条款&之后,大多数警告已发送出去,因为我忘记了执行此行.条件:

Turns out most of the warnings were sent because I forgot to execute this line, after the user accepted the terms & conditions:

ApplicationDelegate.initializeSDK(nil)

我已经完成了这两个设置,但是上面的内容丢失了:

I already had these two setup, but the above was missing:

Settings.isAutoLogAppEventsEnabled = true
Settings.isAdvertiserIDCollectionEnabled = true

令我感到困惑的是,它以前曾在工作,而FBSDKCoreKit的更新肯定以某种方式破坏了它.

What confused me was, that it was working before and an update of the FBSDKCoreKit must somehow have broken it.

警告仍会在应用程序的启动阶段无故显示.在中也提到了这一点stackoverflow问题.如果您有解决此问题的方法,请告诉我.

The warning will still show up for no reason in the app's startup phase. This is also mentioned in this stackoverflow question. Let me know if you have a fix for this one.

这篇关于FBSDKLog:在初始化Facebook SDK之前无法启动FBSDKGraphRequestConnection的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆