简体   繁体   English

FQL / Graph API / iOS SDK中的“赞”功能

[英]'Like' functionality in FQL / Graph API / iOS SDK

Does anyone know the recommended way of creating a FaceBook 'likes' button using the iOS Facebook SDK and the Graph API or FQL. 有谁知道使用iOS Facebook SDK和Graph API或FQL创建FaceBook“喜欢”按钮的推荐方法。

It does not seem to be directly supported or at least I can't find out how to do this using the documentation. 似乎没有直接支持它,或者至少我无法使用文档找到如何执行此操作。

One approach other people have used is to embed the button in a webview and I have found this: http://angelolloqui.blogspot.com/2010/11/facebook-like-button-on-ios.html 其他人使用的一种方法是将按钮嵌入到Web视图中,而我发现了这一点: http : //angelolloqui.blogspot.com/2010/11/facebook-like-button-on-ios.html

The strange thing is that I can't seem to post a like using the graph API or FQL. 奇怪的是,我似乎无法使用图形API或FQL发布赞。 Am I missing something? 我想念什么吗?

The only way to like a page is via the Facebook like button in html. 赞页面的唯一方法是通过html中的Facebook赞按钮。 I'm almost certain there will never be any other way. 我几乎可以肯定,再也没有其他办法了。 Thus, you would need to embed the Facebook like button inside a UIWebView. 因此,您需要将Facebook like按钮嵌入UIWebView中。 If they made a graph API method for it, it would be abused by everybody and every developer would make the user like their app and their pages. 如果他们为此创建了图形API方法,那么它将被所有人滥用,并且每个开发人员都会使用户喜欢他们的应用程序和页面。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM