使用Youtube API打开Graph video.watches动作

时间:2013-05-31 05:12:08

标签: facebook-graph-api youtube-api

是否有人知道是否可以从嵌入式YouTube视频中创建一个开放图 video.watches 操作(使用Youtube API和Open graph)?

1 个答案:

答案 0 :(得分:1)

是的,您可以使用Open Graph API使用javascript执行此操作:

参考>打开图表操作类型> video.watches:

https://developers.facebook.com/docs/reference/opengraph/action-type/video.watches

您可以使用Moments在Google+上执行相同的操作:

https://developers.google.com/+/api/latest/moments/insert

使用AddActivity

https://developers.google.com/+/api/moment-types/add-activity

您应该使用YouTube播放器事件来调用与操作一起使用的功能

https://developers.google.com/youtube/iframe_api_reference#Events