Note that there are some explanatory texts on larger screens.

plurals
  1. POCreate Snapshot/Thumbnail of a blog entry using mvc
    primarykey
    data
    text
    <p>I need to generate a snapshot from multiple links of blogs.</p> <p>What i have is a list of text like these "<em>Report: Twitter Will Release Music Discovery App This Month <a href="http://on.mash.to/10L1v49" rel="nofollow">http://on.mash.to/10L1v49</a> via @mashable</em>"</p> <p>I want to show the links as snapshot of the blog, followed by its text in my view. Or at least i need to get the picture attached to the blog. </p> <p>Using facebook debug, <a href="http://developers.facebook.com/tools/debug" rel="nofollow">http://developers.facebook.com/tools/debug</a> ,i am getting this..</p> <pre><code>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 </code></pre> <p>I tried the same link from my c# code, accessed the link with parameter 'q' as my desired link. I got the same html as reply but i am unable to find the image associated as it is coming differently for different links.</p> <p>Can anyone suggest a better method to do this in mvc?</p> <p>My code in controller to access facebook debug :</p> <pre><code> 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; // raw content as string </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload