由于私有(private) API 调用 viewControllerForView :, Facebook API,iOS 应用程序被拒绝

标签 ios swift facebook facebook-graph-api appstore-approval

我的应用被拒绝了,因为

The use of non-public APIs is not permitted on the App Store because it can lead to a poor user experience should these APIs change.

在方法中

viewControllerForView:

我问我在哪里使用 viewControllerForView:,他们回答了

“viewControllerForView:” was found in the methods: -[FBSDKLikeButton _handleTap:] and -[FBSDKLikeButton _like:].

我的 FBSDKLoginKit、FBSDKCoreKit 和 FBSDKCoreKit pod 都是 4.15.1(最新版本)。我应该如何解决这个问题?

最佳答案

您无需对代码进行任何更改,请阅读 this Facebook 开发人员发布的解决方法。

After integrating our SDK into your iOS app, you will need to submit your app to Apple for review. As part of this review process, you will be asked if your app uses the Advertising Identifier (IDFA). Please check "Yes". You will then be asked how your app makes use of it. The question will take this form: This app uses the Advertising Identifier to (select all that apply)? - Serve advertisements within the app - Attribute this app installation to a previously served advertisement - Attribute an action taken within this app to a previously served advertisement

If you will be using the Audience Network framework, you must select the first option. If you are using our core framework to track install attribution and app events, please select the second and third options. If you are using both, select all three.

You will also be asked to check a box to confirm that your app honors a user's Limit Ad Tracking setting in iOS. The Facebook SDK honors the iOS Limited Ad Tracking Setting. When a person enables Limited Ad Tracking, Facebook only uses data obtained through the use of the Advertising Identifier for “Limited Advertising Purposes” as defined by the iOS Developer Program License Agreement. Please make sure check this box when prompted.

Marking these questions in this way will help ensure a smooth review process

关于由于私有(private) API 调用 viewControllerForView :, Facebook API,iOS 应用程序被拒绝,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39578414/

相关文章:

swift 错误 : Extra argument in call

swift - NSButton 子类不发送事件

基于数据库的 Facebook 连接

ios - 带有字符串 %20 的 NSURL

ios - UITabBarController - 更多按钮不显示

iOS Apple Pay - 自定义 PKPaymentButton

c# - 如何使用 Facebook 开发者工具包将内容发布到留言墙上?

django - 在 Django 中使用 Facebook Like 插件的正确方法

ios - shadowedBitMask 与 shadowCastBitMask

iphone - CLLocationManager 如何在飞行模式开启时获取位置