Youtube-API: How to determine if I liked a video before? - youtube-api

I am developing a client of Youtube for iOS devices. I want to check if logged user did Like or dislike a specified video or not. But I can't find any support API (here)
When I load the feed of videos, I just found rating information below , No thing shows that logged user liked or disliked this video.
{
"gd$rating":{
"average":4.8963733,
"max":5,
"min":1,
"numRaters":193,
"rel":"http://schemas.google.com/g/2005#overall"
},
"yt$statistics":{
"favoriteCount":"0",
"viewCount":"111626"
},
"yt$rating":{
"numDislikes":"5",
"numLikes":"188"
}
}
Did I make any mistake?

It can be done using YouTube Data API v3.
https://developers.google.com/youtube/v3/docs/videos/getRating

This is API v3, checkout this page :
https://developers.google.com/youtube/v3/docs/playlists

Currently, The official client youtube on android and iOS devices does not support this. User can't see that he/she liked or disliked a video. And, when I press "like" or "dislike" on iPad youtube app, the number of like on the youtube web does not change.
Unbelievable!

Related

How to find a youtube channel with a private video url only?

I'm trying to open a .rar file but it has password and it's in the description of a video on Youtube but when I checked the link again it was private and I don't remember the channel's name, so I just want to know if there's a way to find this channel because I just wanna ask to the user if I could have the password. This is the url if it helps, thanks.
https://www.youtube.com/watch?v=6rTPvftDHtQ
I typed "6rTPvftDHtQ" on Google in order to have only webpages containing exactly 6rTPvftDHtQ.
I let you find more details about the other interesting result except this StackOverflow post. The video gaming creator Mataraxu posted the URL of the video as a comment of a Facebook post and the post shares this YouTube channel URL https://www.youtube.com/channel/UC1OnhcSrtZcaI4cgKAfsxsw. If he isn't the man you are looking for, I let you ask him more details.
I WebArchived the webpage from the Google cache because his Facebook webpage doesn't seem to contain anymore this post (and comment), I let you delve this result.
By the way don't hesitate to check your web-browser history as you said that you already went to the video webpage. Maybe with luck you also went on the main webpage of the YouTube channel and then in the URL you would have its name or id.
As far as I know there is no way to do that. One hope would be the waybackmachine, but that has no snapshot of this video page either. So unfortunately you won't be able to search him I guess.
Best Regards!

How can i upload video to Twitter using IOS

I have a local video link, and i want when the user press the button -> show twitter app with my video and title there (without using UIActivityViewController), just by pressing the button
You have to choose which way you want to go to upload a video, i.e. post a tweet with just that title you've mentioned.
Option 1
Use the HTTP API and create a URLRequest that contains the video as 'attachment'. You have to handle authentication first or the request will most likely fail.
Option 2 (Not really an option anymore)
Another way would be the iOS SDK provided, as given in the other example here. Problem is: there is no longer an official Twitter SDK for iOS. You could try your luck with the archived OpenSource SDK but maintainability is pretty decent with this.

instagram iphone hooks MEDIA ID?

I want to open instagram with the picture from my app.
In their API
it says to use the MEDIA ID. I am unaware of a media ID. I know of Asset Representation URL form the ALasset library. Does anyone know what they are refering to?
The media ID comes from the Instagram API for the media that was uploaded to instagram. Usually something on the lines like 448979387270691659_45818965. I believe you can grab it in the browser if you go to the media view in your browser and then use developer tools to see the atttribute

Embedding Youtube Videos on user's wall with the Javascript API

I'm attempting to embed a Youtube video on a user's wall using the Javascript API. I've poured over a bunch of different tutorials and came up with this:
var data = {
method: 'feed',
link: current_video_url, // Link to the vide on our site
source: current_video_src, // Link to the Youtube video, http://youtube.com/v/[hash]
picture: current_picture_url, // Thumbnail from youtube
title: current_video_title, // Title from our page
caption: current_video_description // Text from our page
}
FB.ui(data);
Running the Facebook Debugger shows that the current_video_url link is being properly parsed for OG tags and is available as an embedded video. I ran a debugger and all the variables are being properly set in the data variable.
This worked fine for about 2 days, and then we pushed the site live. We set up a new AppID in Facebook but now all the videos are just thumbnails instead of being embedded in the user's wall. I thought maybe this is a problem with the live site but now the dev site is broken too.
What's the best way to get this to work consistently?

fbcdn An error occurred while processing your request

Some videos uploaded to facebook using iOS Facebook SDK give me the error "An error occurred while processing your request"
Checkout this fbcdn video
I'm trying to play that video on a MPMoviePlayerViewController. Some videos work fine, some videos just don't. The video plays just fine on Facebook, so it's not something related to its data.
Can't find any documentation about what this error is related to.
I came across this error page too, on the iOS on an iPhone 4 when using the Facebook app.
To play the video even if it comes up expired, locate the post you want and instead of tapping on the embedded video, choose the post date. If the post reads:
John Doe shared Jane Doe's video: December 1, 2012 at 9:30pm.
...then you tap the date & time on the post -the "December 1, 2012 at 9:30pm" part- and it will take you to the video without using the expired link. The video should play that way.
Good luck.
This means the link to the video is expired, usually it works for a 2 days period then it gets expired and you have to query the facebook graph API again to get a new link.
I replaced 'v' with 'embed' in url. It worked.
VideoUrl = VideoUrl.replace("/v/", "/embed/")

Resources