Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Like button in iOS application

Tags:

Does anybody know how to place Facebook "like" button into iOS application? I've tried the method described in this blog post. But I do not really like this method, because its ugly Login dialog. And, what is more important, it makes user login twice. For example, user wants post a message to his wall if he isn't logged in I call standard FBLoginDialog, after that user posted a message he may want push "like" button and he have to login again - it is really bad user experience.

How to be? How can I give user "like" feature in my iOS app?

like image 884
iKiR Avatar asked Nov 03 '10 13:11

iKiR


People also ask

What is the function of the Like button?

The Like button was designed to let other users know that you enjoyed their comment, post, or picture. Since using the Like button is an inherently social signal, in order to understand its nature and use we must look beyond the properties of individual users and liked objects.

Why don't I have a Like button on my Facebook page?

Facebook has removed the like button from its redesigned public pages used by artists, public figures and brands, the social media company said on Wednesday. This is a pretty big change and now it will instead focus more on the news feed for conversations, rather than highlighting the likes on FB pages.

How do I add a button in SwiftUI?

SwiftUI's button is similar to UIButton , except it's more flexible in terms of what content it shows and it uses a closure for its action rather than the old target/action system. To create a button with a string title you would start with code like this: Button("Button title") { print("Button tapped!") }


2 Answers

That is actually the only way to do it. There is no special iOS like button. However, the good news is that just today Facebook announced single sign in support for mobile apps. This should remove some of the burden the user faces to log in to facebook.

like image 118
Nathan Totten Avatar answered Sep 20 '22 00:09

Nathan Totten


It seems there is an agreement on not being able to do this. This question shows you can, as does the FB Graph API documentation:

You can comment on or like any object that has a /comments or /likes connection by posting to https://graph.facebook.com/OBJECT_ID/comments and https://graph.facebook.com/OBJECT_ID/likes, respectively.

Unfortunately, according to this question you can’t like a page.

like image 31
Oded Ben Dov Avatar answered Sep 19 '22 00:09

Oded Ben Dov