Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I assume you mean when you share a link to Facebook. Facebook finds the title in the <code>&lt;title&gt;</code> tag of the website. The description is either taken from the description meta tag in the HTML document or from text on the website. Since this isn't completely reliable you are allowed to edit the description before you post the link. I think the same goes for the title.</p> <p>The image is chosen from the images that Facebook can find in the document of the link you've provided. You also get to pick which image to use when you're posting the link, or you can choose not to display an image.</p> <p>I don't know any more details about this than what I've written above, and I couldn't find any documentation on the topic either. The above is pretty much what you need to know to use the feature anyway, and to plan any website you plan on being shared on Facebook accordingly.</p> <hr> <p>The technical term for how the extract the data from your link is <a href="http://en.wikipedia.org/wiki/Web_scraping" rel="nofollow">Web scraping</a>. It's simply a matter of obtaining the raw HTML if the site you wish to scrape (You can use <a href="http://curl.haxx.se/" rel="nofollow">CURL</a> to do that, or PHP's <a href="http://php.net/manual/en/function.file-get-contents.php" rel="nofollow">file_get_content</a> or a multitude of other ways) then searching for the data you with to extract.</p> <p>Extracting the title is easy. If you were to use Regular Expressions, you could write one that fetches the content between the <code>&lt;title&gt;&lt;/title&gt;</code> tags of the website, here is a simple example: <a href="http://regexr.com?2vn66" rel="nofollow"><code>(?&lt;=(\&lt;title\&gt;))(.*)(?=&lt;/title&gt;)</code></a></p> <p>Similar Regular Expressions can be used to find all image links on the site, as well as sample content.</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. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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