开发者

How do I allow users to "Like" our Facebook company profile using the Facebook SDK for iOS?

We have a company profile page on Facebook where we interact with our customers. We would like to get as many users to "Like" us as possible, because it allows us to post something and have have it appear in their feeds.

How do I allow users to "Like" our Facebook company profile using th开发者_如何转开发e Facebook SDK for iOS? We have been able to login/logout and post on other people's walls just fine, but how do we get people to "Like" us using the iOS SDK?


I'm fairly certain this is possible, it will just involve finding the right information in the Facebook Graph API documentation (which is often tricky): http://developers.facebook.com/docs/api

The relevant section on that page would be under "Publishing" where it says

You can publish to the Facebook graph by issuing HTTP POST requests to the appropriate connection URLs, using an user access token ... You can "like" a post by POSTing to https://graph.facebook.com/POST_ID/likes

Where obviously POST_ID should be replaced by the ID of your Facebook page. I don't think this is in the Facebook SDK for iOS but there is definitely code in there for making POST requests to the Graph API, so it would involve digging around in there for a bit. Hope this helps!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜