Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to fetch/embed facebook's photos/videos/statuses?
    primarykey
    data
    text
    <p>I'm trying to embed Facebook's photos, videos or even statuses, but I couldn't fetch anything from Facebook,</p> <p><strong>For example</strong>, I'm trying to embed this Photo Post: <a href="https://www.facebook.com/photo.php?fbid=441525965965373&amp;set=a.310879465696691.71407.295546697229968&amp;type=1&amp;theater" rel="nofollow">https://www.facebook.com/photo.php?fbid=441525965965373&amp;set=a.310879465696691.71407.295546697229968&amp;type=1&amp;theater</a></p> <h2><strong>First (trying oEmbed services):</strong></h2> <ul> <li>Facebook doesn't support an <a href="http://oembed.com/" rel="nofollow">oEmbed</a> interface </li> <li>Also, I think that Facebook is blocking web-scraping</li> </ul> <p>so some services like <a href="http://noembed.com/" rel="nofollow">Noembed</a> (or <a href="http://embed.ly/embed" rel="nofollow">Embedly</a>) will work fine to embed content from Twitter, Youtube or even other sites that doesn't support oEmbed interface, but they won't retrieve anything from Facebook, for example, trying to call the service with:</p> <blockquote> <p><a href="http://noembed.com/embed?url=https%3A%2F%2Fwww.facebook.com%2Fphoto.php%3Ffbid%3D441525965965373%26set%3Da.310879465696691.71407.295546697229968%26type%3D1%26theater" rel="nofollow">http://noembed.com/embed?url=https%3A%2F%2Fwww.facebook.com%2Fphoto.php%3Ffbid%3D441525965965373%26set%3Da.310879465696691.71407.295546697229968%26type%3D1%26theater</a></p> </blockquote> <p>will give:</p> <pre><code>{ url: "https://www.facebook.com/photo.php?fbid=441525965965373&amp;set=a.310879465696691.71407.295546697229968&amp;type=1&amp;theater", error: "no matching providers found" } </code></pre> <h2><strong>Second (trying YQL):</strong></h2> <p>when trying to fetch it using Yahoo's YQL like this:</p> <blockquote> <p><a href="http://query.yahooapis.com/v1/public/yql?q=SELECT%20%2a%20FROM%20html%20WHERE%20url=%27https%3A%2F%2Fwww.facebook.com%2Fphoto.php%3Ffbid%3D441525965965373%26set%3Da.310879465696691.71407.295546697229968%26type%3D1%26theater%27%20and%20xpath=%27//meta|//title|//link%27%20and%20compat=%27html5%27&amp;format=json" rel="nofollow">http://query.yahooapis.com/v1/public/yql?q=SELECT%20*%20FROM%20html%20WHERE%20url='https%3A%2F%2Fwww.facebook.com%2Fphoto.php%3Ffbid%3D441525965965373%26set%3Da.310879465696691.71407.295546697229968%26type%3D1%26theater'%20and%20xpath='//meta|//title|//link'%20and%20compat='html5'&amp;format=json</a></p> </blockquote> <p>it will give nothing, and you can even try it here in the <a href="http://developer.yahoo.com/yql/console/#h=SELECT+%2a+FROM+html+WHERE+url=%27https://www.facebook.com/photo.php?fbid=441525965965373&amp;set=a.310879465696691.71407.295546697229968&amp;type=1&amp;theater%27%2band%2bxpath=%27//meta%7C//title%7C//link%27%2band%2bcompat=%27html5%27" rel="nofollow">YQL console</a></p> <h2><strong>Question is:</strong></h2> <p>How on earth could someone fetch anything from Facebook?</p>
    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.
    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