facebook graph api - How can I tell if user has watched 10 seconds or more of YouTube video? -


i'm using facebook's open graph protocol publish "xxxx watched video" message on user's timeline (with permission, of course).

according facebook's best practices publishing message, shouldn't until user has watched @ least 10 seconds of video. but, videos hosted on youtube. how can tell if 10 seconds has elapsed?

the idea had use youtube's api subscribe event when video starts playing, start internal timer , publish facebook message after 10 seconds. that's complex stuff-- i'd have catch paused event , kill timer, , pause timer during buffering. seems there lot of opportunities in there things go wrong. :-) there easier way?

you can channels->list mine=true , contentdetails.relatedplaylists.watchhistory. playlistid of watched videos authenticated user.

then can call playlistitems->list videoid , playlistid specified check if video watched (not opened , exited)


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -