Any better ways to "Like" a Facebook Page from an iOS app yet?
Asked Answered
C

2

7

I've been trying to implement Facebook "Like" action in my app. Using the requestWithGraphPath:andParams:andHttpMethod:andDelegate: method I was able to like the posts, photos and almost everything but a Facebook Page. And the forums on the web say that this is due to some security reasons to prevent some spam apps from forcibly making the users "Like" their pages. It completely makes sense. So this raises a question that, making the users "Like" the posts or photos without the their knowledge is not an offense? And, yes, that is completely out of the scope of this question ;-)

Coming to the point, I've googled to see what's the most favorable solution and most of the forums/posts suggest that adding the "Like" button iFrame in a UIWebView is the better/only way as of now. So I just want to double check with you guys that is there a better way to Like a Facebook Page from an iOS app without having to use UIWebView lately, or I just have to go with that?

I'd really appreciate everyone!

Chris answered 29/11, 2011 at 5:59 Comment(4)
github.com/brow/FacebookLikeView - most of all can be done by this but if you want to make yourself like button then you need to make iframe for yr link from developer.facebook and later you need to detect Tap on webview using #1050389 and also need to check if user logged in or not.1 more thing to cancel loading on webview [webView stopLoading]; can be required later.Aggappera
1. #2784303 2. #3810152 think these links will help you to understand more on this.Henleigh
@Saranya, dh14-sl, Is there any way other than using the iFrame?Chris
github.com/brow/FacebookLikeView download zip from this link. change appid with your created app's appid and change href put your like page link just all done. Even you can customize it.Read Getting started - it's easy to implement.Aggappera
H
2

I googled for this a lot. We have two ways for adding "Like" button from our app.

  1. By using iframe
  2. By adding HTML button

Here i have given some links for this. Hope this might help you.

a) http://petersteinberger.com/2010/06/add-facebook-like-button-with-facebook-connect-iphone-sdk/

b) http://angelolloqui.blogspot.com/2010/11/facebook-like-button-on-ios.html

c) Adding the Facebook Like Button in an iPhone App

Henleigh answered 30/11, 2011 at 5:3 Comment(0)
T
1

You can use this it may solve your problem

https://github.com/brow/FacebookLikeView

Tummy answered 24/4, 2013 at 7:47 Comment(1)
Don't forget to read its caveats before implementing it to your project.Oe

© 2022 - 2024 — McMap. All rights reserved.