问题描述
我要在iPhone应用程序中添加脸谱像页功能,可以任何机构帮助我如何做到这一点。我已经寻找,但没有找到任何的iOS API。
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?
推荐答案
第一眼看到我的答案在这里 - How通过邮件从当前应用程序共享或交?
First see my answer here - How to Share or post by mail from current app?
在这里你可以学到如何发表评论,图片上的的Facebook
。
有一个样品code也,下载和尝试。
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 为对象的ID -
This is the method of like where 313449204401 is ID of object -https://graph.facebook.com/313449204401/likes
有关发送请求你将还需要一个访问令牌。如何获得的访问令牌您可以通过样本code知道了。
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方法 - 的
For more Read FBGraph
API methods here - https://developers.facebook.com/docs/reference/api/
这篇关于如何添加像iPhone应用程序页面的功能Facebook的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!