user2437390
user2437390

Reputation: 61

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.

Upvotes: 6

Views: 1118

Answers (1)

St&#233;phane Bruckert
St&#233;phane Bruckert

Reputation: 22933

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.

Upvotes: 5

Related Questions