[英]facebook AppInviteContent: The SDK has not been initialized, make sure to call FacebookSdk.sdkInitialize() first
When i try to Launch AppInviteContent like below : 当我尝试启动AppInviteContent时,如下所示:
AppInviteContent content = new AppInviteContent.Builder()
.setApplinkUrl("....")
.setPreviewImageUrl("https://amazingslider.com/wp-content/uploads/2012/12/dandelion.jpg")
.build();
AppInviteDialog.show(activity, content);
i receive the error The SDK has not been initialized, make sure to call FacebookSdk.sdkInitialize() first: 我收到错误SDK尚未初始化,请务必先调用FacebookSdk.sdkInitialize():
04-09 02:46:50.429: W/System.err(5960): The SDK has not been initialized, make sure to call FacebookSdk.sdkInitialize() first.
04-09 02:46:50.429: W/System.err(5960): at com.facebook.internal.Validate.sdkInitialized(Validate.java:145)
04-09 02:46:50.429: W/System.err(5960): at com.facebook.FacebookSdk.getCallbackRequestCodeOffset(FacebookSdk.java:896)
04-09 02:46:50.429: W/System.err(5960): at com.facebook.internal.CallbackManagerImpl$RequestCodeOffset.toRequestCode(CallbackManagerImpl.java:110)
04-09 02:46:50.429: W/System.err(5960): at com.facebook.share.widget.AppInviteDialog.<clinit>(AppInviteDialog.java:75)
but i don't understand because FacebookSdk.sdkInitialize (Context) is deprecated now :( why i receive this error ? 但我不明白,因为FacebookSdk.sdkInitialize(Context)现在已被弃用:(为什么我收到此错误?
im under Delphi if it's matter 如果它是重要的,我在Delphi下面
Just use the deprecated FacebookSdk.sdkInitialize(); 只需使用已弃用的FacebookSdk.sdkInitialize(); for now. 目前。
Auto-init uses content providers which fail on some devices with modified Android. Auto-init使用在某些已修改Android的设备上失败的内容提供商。 I got thousands of crashes and uninstalls from my users. 我从用户那里收到了成千上万的崩溃和卸载。
I reported this issue months ago and they still didn't fix it, instead they just closed the issue. 几个月前我报告了这个问题,他们仍然没有解决这个问题,相反他们只是关闭了这个问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.