iOS Facebook Like按钮无法与iOS App一起使用 [英] iOS Facebook Like Button Not Working With iOS App

查看:102
本文介绍了iOS Facebook Like按钮无法与iOS App一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试将Facebook Like Button添加到iOS App.按照网上的指示进行操作,发现有问题.

Trying to add the Facebook Like Button to an iOS App. Followed the directions online and am seeing an issue.

在模拟器上未安装Facebook应用程序(8.x,7.x):

Without the Facebook App Installed on Simulator (8.x, 7,x):

当按下F Like按钮时,我们会看到到Facebook.com的过渡,但随后迅速返回到iOS App.它不会转到正确的Facebook Like页面,用户无法在其中喜欢传递的URL.

When pressing the F Like button, we see a transition to Facebook.com but then quickly returns to the iOS App. It does not go to the proper Facebook Like page where the user can like the URL passed.

在iOS应用中,调用openURL方法并在Facebook中

In the iOS app, the openURL method is being called and the Facebook

wasHandled = [FBAppCall handleOpenURL: url sourceApplication: sourceApplication];

被调用,并返回是.

请注意,我们还使用了在此应用程序中正常运行的Facebook登录按钮.

Please note that we are also using the Facebook Login Button that is working fine in this app.

此刻,用户已经通过Facebook登录按钮进行了身份验证.

The user has already been authenticated with the Facebook Login Button at this point.

对此有任何提示.

我们正在使用Facebook iOS SDK 3.21.1

We are using Facebook iOS SDK 3.21.1

[添加]

查看本文

http://stackoverflow.com/questions/26529314/android-likeview-error

这就是我们在openURL的URL错误消息中看到的内容

This is what we are seeing in the the URL Error Message in openURL

The like dialog is only available to developers and testers

哪种有点没有道理?普通用户应该能够看到喜欢"对话框来喜欢该商品吗?

Which kinda does not make sense? Regular users should be able to see the like dialog to like the item?

推荐答案

适用于iOS和Android上的Facebook Like Buttons.

For Facebook Like Buttons on iOS and Android.

在集成了最新的SDK之后,您想进行测试....

After you have integrated the latest SDK and you want to test....

1)您必须使用Facebook帐户,该帐户既可以是应用程序的开发人员帐户(创建应用程序的Facebook ID的帐户),也可以是链接到测试人员的Facebook帐户到Facebook开发人员帐户.

1) You must use a Facebook Account that is either the Developer account for the app (the account that the Facebook ID for the app was created) OR a linked tester Facebook account to the Facebook Developer account.

2)您必须使用此帐户在App上使用on登录.

2) You have to use this account to login with on for the App.

3)测试"BETA"标语时,目标页面上将会出现该信息.

3) When testing a "BETA" banner will be on the target page.

4)如果这些位置不正确,至少对于iOS,您会在AppDelegate的openURL例程的URL中收到一条错误消息.对于Android,您将在onActivityResult例程中获得取消"状态.

4) If these are not in place, for iOS at least you will get an error message in the URL in the openURL routine in the AppDelegate. For Android you will get a "CANCEL" status in your onActivityResult routine.

The like dialog is only available to developers and testers

希望这会有所帮助.

要完全启用赞"按钮进行生产,请参阅上面的"Ming Li"评论.

To fully enable the like button for production, please see Ming Li comments above.

这篇关于iOS Facebook Like按钮无法与iOS App一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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