FBLikeControl不加载也不起作用 [英] FBLikeControl does not load nor function

查看:172
本文介绍了FBLikeControl不加载也不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

随着facebook ios sdk的新版本,文档正在谈论像控件一样的Facebook,它允许喜欢一个页面。
https://developers.facebook.com/docs/ios/like-按钮/

With the new release of facebook ios sdk, the documentation is talking about the facebook like control, that allows to like a page. https://developers.facebook.com/docs/ios/like-button/

控件的文档在这里
https://developers.facebook.com/docs/reference/ios/current/class/FBLikeControl

然而我尝试了它并没有出现,虽然我只能检测到一个清晰的颜色矩形,我改变了背景颜色,颜色出现在那个矩形上,但不是文档中提到的facebook风格。
此外它不起作用,它应该带我到fb应用程序显示链接到它的对象。

Yet i tried it and it's not appearing, though i can detect a clear color rectangle only, i change the background color, the color appears on that rectangle, but not the facebook style as mentioned in the documentation. Additionally it doesn't work, it should take me to the fb app to show the object linked to it.

我尝试通过一个应用程序,同时配置提到的项目,AppID ......以及一切。我也尝试过来自facebook SDK的示例项目SessionLoginSample,但无济于事。

I tried through an app, while configuring the project as mentioned, AppID ... and everything. I tried also from a sample project "SessionLoginSample" that comes with facebook SDK, to no avail.

按钮颜色鲜明,看似有意或有些破损。
这是新的所以我认为可能有问题,或者,我做错了什么:)

The button being clear color, seems like intentional, or something broken. It's new so I thought that there might be problems, or, i'm doing something wrong :)

任何人?

推荐答案

您可以通过在viewdidload中启用以下功能或创建FBlikeControl按钮来使用FBlikeControl按钮:

You can use FBlikeControl button by enabling below feature in viewdidload or where you create FBlikeControl button:

[FBSettings enableBetaFeature:FBBetaFeaturesLikeButton];
[FBSettings enablePlatformCompatibility:NO];

这篇关于FBLikeControl不加载也不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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