title: How to retrieve web site favicons?
body: <p>I am using Ruby on Rails v3.0.9 and I would like to retrieve the <code>favicon.ico</code> image of each web site for which I set a link.</p>
  
  <p>That is, if in my application I set the <code>http://www.facebook.com/</code> URL I would like to retrieve the Facebook' icon and use\insert that in my web pages. Of course I would like to do that also for all other web sites.</p>
  
  <p>How can I retrieve <code>favicon.ico</code> icons from web sites in an "<em>automatic</em>" way (with "automatic" I mean to search for a favicon in a web site and get the link to it - I think no because not all web sites have a favicon named exactly 'favicon.ico'. I would like to recognize that in an "automatic" way)?</p>
  
  <p>P.S.: What I would like to make is something like Facebook makes when to add a link\URL in your Facebook page: it recognizes the related web site logo and then appends that to the link\URL.</p>