views:

1219

answers:

7

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

A: 

Since you're using a UIWebView, here's a Facebook-style "Like" button in HTML:

<input type="button" value="Like" class="like_link" />
Dolph
A: 

Are you aware of any way to tell facebook to make a user like a facebook page from a uiwebview?

Brian Schwartz
A: 

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.

MihaiD
A: 

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.

Stephen Darlington
A: 

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

Scott