Questions tagged [social-media-like]

For topics related to the "like" functionality in social networks such as Facebook, YouTube, etc. For Facebook's "like" functionality, there is also the more specific tag [facebook-like].

81 questions
13
votes
1 answer

Like button Ajax in Ruby on Rails

I have a Ruby on Rails project with a model User and a model Content, among others. I wanted to make possible for a user to "like" a content, and I've done that with the acts_as_votable gem. At the moment, the liking system is working but I'm…
gd_silva
  • 997
  • 2
  • 11
  • 17
6
votes
3 answers

Need help on like/dislike voting system

I'd like to get some help to build a like/dislike sorting algorithm to find the best entries. I thought about a way to do it, but there are two major flaws with this method and I'd like to know if there's any better way. Here's how I thought about…
kettlepot
  • 10,574
  • 28
  • 71
  • 100
5
votes
1 answer

Best practice for 'like' functionality

I'm working on a flash gaming website. I have two models: Game and User and an intermediate table in which I keep the user's actions as for example: "User 1 likes Game 3". Where is the best place for my like function? Is it a good practice to grab…
igs013
  • 1,380
  • 10
  • 15
4
votes
1 answer

Implementing a like button in a tableviewCell in swift

I am trying to make a like button in each of my tableview cells. When it is pressed, the button will change to "unlike". I was able to do this by creating an IBOutlet in my subclass and an IBAction Method in my tableviewcontroller class using…
HS__HS
  • 103
  • 1
  • 10
4
votes
1 answer

Rails Acts_as_votable Gem Like/Unlike Buttons with Ajax

I'm new to Ruby On Rails, I used the acts_as_votable gem to create Like and Unlike Buttons to make Users like and unlike Posts but I can't make them change from Like to Unlike (and viceversa) and update the counter each time they click without…
orim
  • 41
  • 7
4
votes
1 answer

Using Tumblr Like Button with Infinite Scroll

I'm trying to use the new Tumblr like buttons within Infinite Scroll (allowing your theme a like button on individual Tumblr posts from the homepage) they work for the first 15 posts of the first 'page' but then as soon as it loads another page the…
andbamnan
  • 1,285
  • 2
  • 11
  • 8
4
votes
3 answers

How to create your OWN Like button? (Not facebook related)

I looked on SO, here, a few other places & ... cluelessness set's in. What is the structure of the Facebook " Like " Button found all over websites ? Is it a Social Bookmarking, Browser Button kind ? Is there a step by step process (without using FB…
Bobbi
  • 37
  • 1
  • 1
  • 6
4
votes
3 answers

500px.com Ranking Algorithm

I was recently wondering how http://500px.com calculates their "Pulse" rating. The "Pulse" is a score from 1..100 based on the popularity of the photo. I think it might use some of the following criteria: Number of likes Number of…
alex
  • 4,922
  • 7
  • 37
  • 51
3
votes
5 answers

Public votes and avoiding mutliple vote: using cookies or IP?

How do you handle public vote (anyone can "like or dislike" an article) and to restrict him to vote only one time? Have I to use cookies? (with the problem that he can remove the cookie and vote x999 times) or I store his IP in database?
Unitech
  • 5,781
  • 5
  • 40
  • 47
3
votes
1 answer

Storing "likes" of an item in a database?

I'm running a Rails app on Postgres through Heroku. I'd like to implement similar to Facebook "likes" on my site for various items, such as user comments. What's the smartest way to store these in my database that will be efficient and fast? The…
William Jones
  • 18,089
  • 17
  • 63
  • 98
3
votes
1 answer

Rails 4 Ajax like button failing to wоrk

Im struggling to make my Like links to work with ajax. After clicking on "Like" nothing changes, only after refreshing the page I can see that like got counted. EDIT: Addet routes. EDIT2: I inspected the Like link with Firebug and after entering the…
2
votes
2 answers

Getting number of likes for a user in all his posts using mongodb

Hi I want to build a leader board that will rank users based on the likes they have accumulated in all their posts. My database for Posts user: { type: Schema.Types.ObjectId, }, text: { type: String, required: true, }, …
2
votes
1 answer

Implementing like and unlike functionality in Swift using Parse

I am trying to implement a like/unlike feature in my iOS app using Swift 2.0, Storyboard, and Parse where users can like/unlike posts created by other users or themselves - just like Instagram, Facebook, and other social apps. I have a button wired…
dnadri
  • 173
  • 1
  • 2
  • 11
2
votes
1 answer

About like system (such as facebook like system) using myisam Mysql

One problem I have them is 'like system' such as facebook like system. I making the program using foreign hosting site having myisam mysql. as you know the myisam mysql has not transaction system. so it can not set key like foreign key to present…
2
votes
0 answers

Tumblr Like Buttons are Unclickable with Infinite Scroll

It's a similar issue to 16390193, but I still can't figure out how to get it to work (I'm not a web developer...). My test site is http://testooop.tumblr.com/ (based on copycat theme). Here are some theme codes (that I think are relevant to the…
user5017650
1
2 3 4 5 6