Does anyone know how I would include a facbeook "like button" in an iphone app. I tried calling the iframe inside of a uiwebview but that doesn't work.
thanx
Does anyone know how I would include a facbeook "like button" in an iphone app. I tried calling the iframe inside of a uiwebview but that doesn't work.
thanx
Since you're using a UIWebView, here's a Facebook-style "Like" button in HTML:
<input type="button" value="Like" class="like_link" />
Are you aware of any way to tell facebook to make a user like a facebook page from a uiwebview?
You can include it in a UIWebView, just make sure it's inside <html><body>
. The problem is that once the user clicks the button, the UIWebView may redirect to a log-in form, so you would have to make it large enough to fit that thing.
Have fun creating a design that presents the button in a sensible fashion.
Facebook have recently updated their iPhone Facebook Connect framework to work with the Graph API. This is the API that you need to "Like" objects on Facebook.
Here you go - w the source code...enjoy -and please leave a comment if its useful.
http://nowbranded.com/blog/adding-a-facebook-like-button-to-an-iphone-application/
www.NowBranded.com