简体   繁体   中英

'Like' functionality in FQL / Graph API / iOS SDK

Does anyone know the recommended way of creating a FaceBook 'likes' button using the iOS Facebook SDK and the Graph API or FQL.

It does not seem to be directly supported or at least I can't find out how to do this using the documentation.

One approach other people have used is to embed the button in a webview and I have found this: http://angelolloqui.blogspot.com/2010/11/facebook-like-button-on-ios.html

The strange thing is that I can't seem to post a like using the graph API or FQL. Am I missing something?

The only way to like a page is via the Facebook like button in html. I'm almost certain there will never be any other way. Thus, you would need to embed the Facebook like button inside a UIWebView. If they made a graph API method for it, it would be abused by everybody and every developer would make the user like their app and their pages.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM