如何在iPhone应用程序中添加Facebook的页面功能?
我必须在iPhone应用程序中添加Facebook Like page功能,任何身体都能帮助我如何做。我已经搜索,但没有找到任何API的iOS。
I have to add "Facebook Like page" functionality in an iPhone app could any body help me how do it. I have searched for it but didn't find any API for iOS.
在我的应用程序中,我必须给用户一个类似的页面选项。用户将喜欢我们的页面,然后他们将获得我们应用程序其他内容的完整访问权限。
我如何知道用户已经喜欢我们的网页?
In My app i have to give a like page option to users. Users will like our page and then they will get full access of other contents of our application. How can i know that user have liked our page or not?
首先看到我的答案 - 如何通过邮件,Twitter和Twitter分享或发布Facebook从当前的应用程序?
First see my answer here - How to share or post by mail, twitter and facebook from the current application?
在这里你可以学习如何发表评论,图片在 Facebook
。
还有一个示例代码,请下载并尝试。
Here you can learn how to post comment, Image on Facebook
.
There is a sample code also, Download and try it.
现在来看一下如何使像按钮
。所以对于这个 Facebook
提供了一个 POST
方法,您可以通过该方法发送类似任何对象的请求。
Now come to your point how to make a like button
. So for this Facebook
has provided a POST
method through which you can send a request for like any object.
这是一种类似于 313449204401 的对象的方法 -
https://graph.facebook.com/313449204401/likes
This is the method of like where 313449204401 is ID of object - https://graph.facebook.com/313449204401/likes
对于发送请求,您将有还需要一个访问令牌。如何获取访问令牌,您可以通过示例代码了解。
For sending request you will have also need an access token. How to get an access token you can know by sample code.
更多阅读 FBGraph
API方法 - https://developers.facebook.com/docs/reference/api /
For more Read FBGraph
API methods here - https://developers.facebook.com/docs/reference/api/