How to check and let a user “Like” a page programmatically from iphone application?
-
27-09-2019 - |
Question
I am trying to integrate iphone application with facebook, and I am stuck at a point where I need to let a user "Like" a page. This is because it's only after Liking the page the user gets to write some comments which will ultimately appear on the page's wall. I am not able to find any appropriate objective C code to implement this functionality.Also How do I check If a user "Likes" a page (any other way other then FQL)I need to hide the like button once he likes the page.
Solution
You should check the official Facebook Graph API documentation:
http://developers.facebook.com/docs/api
http://developers.facebook.com/docs/reference/api/
Facebook also now has an updated API for the iPhone for use with the Graph API:
http://github.com/facebook/facebook-ios-sdk/
EDIT: You may want to see using Facebook iOS SDK 2, how do I like a page? - "Application must be on whitelist"