I was wondering if it's possible to embed youtube videos' comments and like button with the video? If there is such thing, how can I do that or where can I get more info? Thanks
相关问题
- YouTube API refresh token revoked with 400 code “i
- Unable to Full Screen Youtube Video Inside Custom
- Thumbnails from the Vimeo website harder than YouT
- YouTube Data API v3 allowed referers for browser a
- Wait until page is loaded when using XMLHTTP appro
相关文章
- How to dynamically add wmode=transparent to Youtub
- Detect or Approximate Bluetooth Latency on Android
- YouTube Video in R markdown
- How to prevent YouTube js calls from slowing down
- How to display all YouTube videos from specific ch
- How to get the last 24 hours worth of videos from
- Target iframe if it is a YouTube embed
- Youtube Video Duration API v3 [closed]
YouTube does not have any embed code that you can use to embed comments. So basically there are 2 options to embed comments -
1. Use the YouTube API to embed and post comments. This will need a good coding knowledge.
To get comments use this endpoint
To add comments use this endpoint
2. Or you can use a ready-made plugin that allows this functionality. Here is a small demo of the Youmax plugin that will list comments as well as allow you to add comments.
Here you can see an example of how to get and display the video comments
Getting Youtube Video Information using javascript/jquery
and in the Topic Explorer project you can see how to add a 'like' or add the video to your favorites:
https://code.google.com/p/yt-topic-explorer/source/browse/app/views/main.html
and in:
https://code.google.com/p/yt-topic-explorer/source/browse/app/scripts/controllers/main.js
EDITED: On Feb,2016 YT has stopped the solution bellow from working :-( I'll keep it here just for reference
FOR THE COMMENTS:
As YT has deprecated the gdata for the comments url, you can scrape 'em also from here; its a workaround though :D
...no authentication needed! :) and if you want to work the client side only (in this example by cross-domain), go through JS
You can Access YouTube Comments by processing this URL
http://gdata.youtube.com/feeds/api/videos/{$videoID}/comments
The YouTube like functionality requires the user to be logged-in to his/hers Google account