How to make like button ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

How to make like button ?

How to make workable LIKE button like Facebook has ?

8th Dec 2018, 6:39 PM
Asif khan
Asif khan - avatar
29 Answers
+ 7
If you want your button to be connected to Facebook maybe you should check this. https://developers.facebook.com/docs/plugins/like-button/ Otherwise, it depends on how you have configured your page and what you want to do.
8th Dec 2018, 6:52 PM
Mickel
Mickel - avatar
+ 6
Lol. I donโ€™t use youtube much. Not sure how their like button works
8th Dec 2018, 9:19 PM
Jax
Jax - avatar
+ 5
Youโ€™d need a databse for that. Store all the users that liked it, and if you try to like it, and that user is already there, you do nothing
8th Dec 2018, 7:09 PM
Jax
Jax - avatar
+ 4
You could get an image off the internet, and put it in your HTML with an onclick attribute. At least assuming you just want it to do something when clicked
8th Dec 2018, 6:45 PM
Jax
Jax - avatar
+ 4
Let me get this straight. Up arrow increases by 1. Down arrow decreases by 1, but only if you have increased by 1 already?
8th Dec 2018, 8:38 PM
Jax
Jax - avatar
+ 4
try latest code now
8th Dec 2018, 9:04 PM
Jax
Jax - avatar
+ 3
Iโ€™ve edited the original
8th Dec 2018, 7:48 PM
Jax
Jax - avatar
+ 3
You want the code to do that? Actually easier than what i did. Just give me a bit
8th Dec 2018, 8:07 PM
Jax
Jax - avatar
+ 2
Wow thank you so much.. I've another question but I'm scared you not kill me hhhh
8th Dec 2018, 7:59 PM
Asif khan
Asif khan - avatar
8th Dec 2018, 8:47 PM
Jax
Jax - avatar
+ 2
lol. great job
8th Dec 2018, 9:46 PM
Jax
Jax - avatar
+ 1
One Gmail or Facebook account has allows to like once a specific post ? Not continue like 1 + 1 . . . .
8th Dec 2018, 7:07 PM
Asif khan
Asif khan - avatar
+ 1
Jax I want a button if I click it must be liked but if I click again it must be backed !! I mean like and back unlike!!
8th Dec 2018, 7:20 PM
Asif khan
Asif khan - avatar
+ 1
So you want a button. Lets say the thumbs up like on facebook. Click it, and itโ€™s liked. Click it again, and you remove your like?
8th Dec 2018, 7:39 PM
Jax
Jax - avatar
+ 1
Jax Yes dude ...
8th Dec 2018, 7:40 PM
Asif khan
Asif khan - avatar
+ 1
Paste the like if you've created !
8th Dec 2018, 7:53 PM
Asif khan
Asif khan - avatar
+ 1
Lol. Iโ€™m here to help.
8th Dec 2018, 8:01 PM
Jax
Jax - avatar
+ 1
Jax Thank you for not killing me haha "I've seen on youtube there's two tombs when I like video up tomb = 1 But when I want to unlike I should click down tomb" I think sololearn 'like arrows' are example ! It's same like youtube
8th Dec 2018, 8:06 PM
Asif khan
Asif khan - avatar
+ 1
Yes. I would love to see your codes ๐Ÿ˜๐Ÿ˜
8th Dec 2018, 8:08 PM
Asif khan
Asif khan - avatar