Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rate (like/dislike) YouTube comments

Simple problem:

I'm using Youtube gdata through javascript to: Comment, Reply and Like/Dislike videos. Everything is working so far!

However, I'm trying to allow users to specifically like and dislike COMMENTS (the same way you can on native youtube.com). But I can't actually find the docs that explain how this is done.

I tried sending the follow to ...://gdata.youtube.com/feeds/api/videos/[video_id]/ratings

<entry xmlns="http://www.w3.org/2005/Atom"
       xmlns:yt="http://gdata.youtube.com/schemas/2007">
    <link rel="http://gdata.youtube.com/schemas/2007#in-reply-to" 
          type="application/atom+xml" href="<ID>"/>
    <yt:rating value="like"/>
</entry>

But no joy. Any help would be appreciated! Thanks.

like image 361
user2437390 Avatar asked May 30 '13 16:05

user2437390


People also ask

What is a good like to dislike ratio on YouTube?

In general, people tend to Like YouTube videos more often than Disliking them. The average Like/Dislike ratio is 90%; this means that for every 9 likes, there is 1 dislike.

Does YouTube dislike comment button do anything?

Originally Answered: Does the dislike button on YouTube comments do anything? Nope. It's just a button that does nothing. In fact dislike a comment and you won't see the numbers of likes go down.

Do people see when you dislike their comment on YouTube?

There is no way to see who liked your YouTube comment, and likewise there is no way to see who gave you a downvote. YouTube keeps these comment likes or dislikes private for the safety and security of users, but it's likely a safe bet anyone who left a positive comment on your comment also liked it.

Why did YouTube remove dislikes on comments?

YouTube users will no longer see how many dislikes a video has got. The platform says it's made the change to protect users from "dislike bombing" and to reduce "stress and embarrassment" for creators.


1 Answers

You got video comments so I guess you use the V2 YouTube API, because it's not possible in the V3. And the V2 doc says:

Each entry in the comments feed contains information about a single comment. Each comment has an author, a title, content, and an in-reply-to link.

Source: https://developers.google.com/youtube/2.0/reference?hl=fr&csw=1#Comments_Feeds

They don't speak about like nor dislikes. It is even not possible to GET the likes and dislikes amount for comments, so neither is it to SET them.

like image 148
Stéphane Bruckert Avatar answered Oct 29 '22 17:10

Stéphane Bruckert