xcode 在 IOS 上实现“喜欢我们的 Facebook 页面”按钮?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/14508264/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Implement a 'Like our Facebook page' button on IOS?
提问by Hyman
After looking through several related topics and web articles it seems many of them was written before IOS6 and the integration to Facebook.
在浏览了几个相关主题和网络文章后,似乎其中许多是在 IOS6 和与 Facebook 的集成之前编写的。
What I'm looking to do it add a LIKE button within my application that the user can press which will then like our facebook page.
我要做的是在我的应用程序中添加一个 LIKE 按钮,用户可以按下它,然后就会喜欢我们的 Facebook 页面。
What is the best way to do this?
做这个的最好方式是什么?
Facebook IOS SDK?
Facebook IOS SDK?
Facebook OpenGraph?
Facebook OpenGraph?
Is there any good up-to-date tutorials out there?
有没有什么好的最新教程?
采纳答案by coleman17
I personally think the Facebook SDK would be the best place to start. iOS6 implements a lot of functionality with Facebook, and frankly, after I was done reading through some of it, it did a lot that I had no idea it even could.
我个人认为 Facebook SDK 是最好的起点。iOS6 用 Facebook 实现了很多功能,坦率地说,在我读完其中的一些之后,它做了很多我什至不知道它可以做到的事情。
This tutorial helped a lot: https://developers.facebook.com/docs/tutorials/ios-sdk-tutorial/
本教程帮助很大:https: //developers.facebook.com/docs/tutorials/ios-sdk-tutorial/
But, perhaps this is more what you are looking for (?): http://angelolloqui.com/blog/10-Facebook-Like-Button-on-iOS
但是,也许这更像是您要寻找的(?):http: //angelelloqui.com/blog/10-Facebook-Like-Button-on-iOS
Hope this helps!
希望这可以帮助!
回答by Andrew Madsen
I've used the FacebookLikeViewproject with (initial) success. Unfortunately, my app was blocked, apparently due to triggering Facebook's spam detection during development and testing of the app (liking/unliking my own page a number of times). I haven't found a way around that problem, and it is something that others have seen too.
我使用了FacebookLikeView项目并获得了(初始)成功。不幸的是,我的应用程序被阻止,显然是因为在应用程序的开发和测试期间触发了 Facebook 的垃圾邮件检测(多次喜欢/不喜欢我自己的页面)。我还没有找到解决这个问题的方法,其他人也看到了。