How to Implement FaceBook "Like-IT" Button in Iphone/Ipad? - facebook

I want to interigrate i like it button in my Iphone/ Ipad application please help me out?? with some steps and all the required things ????
Thanks a lot in advance...

Are you speaking of the "Like" button or the "i like it" stream post?
For the "Like" button, you need to create a UIWebView and then:
have a page hosted somewhere with your xfbml or iframe like button
or use NSBundle to inject HTML and javascript and then read it from a string
Either way - you will get a like button working.
For the stream publish, you need to use the iOS SDK to make a graph call to '/me/feed', 'post' etc... with your appropriate params and message.

Related

How hide tilte, decriptions, change url when I shared link to facebook like this? Thanks

How hide tilte, decriptions, change url when I shared link to facebook like this?
https://i.stack.imgur.com/FyDAh.png
When I click the image, it leads to new.
How can I do this?
Thanks
The intruction to help us do that.
Facebook takes the data from the Open Graph tags in the page source. If you want to redirect to another website, you can do so with JavaScript - Facebook does not parse JavaScript.
I would not advise doing this though, people should know where they go before they click on a link - and not be redirected somewhere else.

callback on foursquare like and follow buttons

Is it possible to have a callback URL on foursquare Web buttons when they have been successfully clicked?
Is it as simple as just including a redirect_url attribute in the html?
You can try capturing the click event client-side and using that information as you wish.

Custom like button how do you do it?

I have been using Flipboard for sometime. And on the the app their is a really customized Facebook LIKE button. How do I achieve this for my mobile web app?
"Like" is nothing but a connection available on different Facebook objects like "Albums", "Post" and many others. To create a like you need to issue "HTTP POST" on the click of the button or element you want to represent as a like button. For example to create a like on Album object using PHP SDK :-
$likeCreate = $facebook->api("/ALBUM_ID/likes","POST");
This creates the like for the user using the application through which this call was initiated and also requires publish_stream permission.

Populate a sharer link for facebook

Im using this URL to share my website without having to add any facebook code:
http://www.facebook.com/sharer/sharer.php?u=http://yahoo.com
And I was wondering, is there any way to populate the description field, like another URL parameter?
EDIT: Seems like sharer its deprecated in favour of the like button, but i dont want to use the ugly look of the like button. is there a way to replace it? Im trying to achieve an effect like this in twitter:
<a href='http://twitter.com/home?status=My_message' <img src='mytwittericon.png' /></a>"
The facebook "sharer" has been deprecated and is no longer supported as it states here:
The Share button has been deprecated in favor of the Like button, and
will no longer be supported. Please use the Like button whenever
possible to drive maximum traffic to your apps.
And here:
What happened to the old Share button?
We deprecated the Share Button when we launched the Like button,
because the Like button improves clickthrough rates by allowing users
to connect with one click, and by allowing them to see which of their
friends have already connected.
I actually find Sharer more useful than Like button.
Try this code:
<img src="http://yourdefaultsharebutton.png">
Or just set proper OG tags.

how integrate facebook to iphone app

I would like to show a Like button in my app, what is the latest way of doing this?
Use the "LIKE" button code in an HTML document and load it into a UIWebView. Thats the easiest way.