I need to create a snapshot of several blog links.
I have a list of texts like these "Report: Twitter will release this month's music discovery application http://on.mash.to/10L1v49 via @mashable"
I want to show the links as a snapshot of the blog, and then the text in my opinion. Or at least I need the image to be attached to the blog.
Using facebook debugging, http://developers.facebook.com/tools/debug , I get this.
fb:app_id: 122071082108 og:url: http://mashable.com/2013/03/13/twitter-music-app/ og:type: article og:title: Report: Twitter Will Release Music Discovery App This Month og:image: og:description: Twitter is planning to release a standalone music app for iOS called Twitter Music as soon as the end of this month, according to CNET. CNET reports that Twitter Music will help... og:site_name: Mashable og:updated_time: 1363267654
I tried the same link from my C # code, turned to the link with the "q" parameter as my desired link. I got the same html as the answer, but I can not find the linked image as it goes differently for different links.
Can anyone suggest a better way to do this in mvc?
My code in the controller to access facebook debugging:
var client = new RestClient { BaseUrl = "http://developers.facebook.com/tools/debug/og/object" }; var request = new RestRequest { DateFormat = DataFormat.Xml.ToString(), Resource = "Add", Method = Method.GET }; request.AddParameter("q", "http://on.mash.to/10L1v49"); IRestResponse response = client.Execute(request); var content = response.Content;
Rifaj source share