Tutorial shows how to make http calls using httpwebrequest to the facebook REST server and upload a video. It shows how to construct complete post message for video upload and how to create a signature manually using classes in the system.security.cryptography namespace. And here is the code to get response and show hyperlink with video URL.
Dim myResponse As System.Net.HttpWebResponse = DirectCast(mywebRequest.GetResponse(), Net.HttpWebResponse) Dim myresponseReader As New IO.StreamReader(myResponse.GetResponseStream()) Dim myXMLDOC As New System.Xml.XmlDocument() myXMLDOC.LoadXml(myresponseReader.ReadToEnd()) Dim myHyperlink As New HyperLink() myHyperlink.Text = "Watch the Video" myHyperlink.NavigateUrl = String.Format("http://www.facebook.com{0}", myXMLDOC.DocumentElement.Item("link").InnerText) form1.Controls.Add(myHyperlink)
Please have a look at the description to get code for getting response back and showing a hyperlink in code with video URL. User can click on the hyperlink and goto video page on facebook.
rafaybinali 2 years ago