Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to generate meta tags just like facebook's linter does
    text
    copied!<p>I'm doing a project in which I have to show the project description to the app user and what I have is the url of the product, the url could be from any site it could be the product url from amazon, ebay etc after searching a lot I found that the facebook's linker does the same thing that I want for my project that is generating the meta tags from single url, after generating the meta tags I will get the information i needed from those tags but the question is how to generate those tags. </p> <p>Below is the code in my product.php I used to debug on facebook linter</p> <pre><code>&lt;html&gt; &lt;head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# article: http://ogp.me/ns/article#"&gt; &lt;meta property="fb:app_id" content="xxxxxxxxxxxxxx" /&gt; &lt;meta property="og:url" content="http://rads.stackoverflow.com/amzn/click/0596006810" /&gt; &lt;meta property="og:site_name" content="social" /&gt; &lt;meta property="fb:profile_id" content=""&gt; &lt;meta property="og:type" content="website" /&gt; &lt;meta property="og:image" content="" /&gt; &lt;meta property="og:title" content="" /&gt; &lt;/head&gt; &lt;body&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>When I pressed the debug button, it generates the meta tags as shown below <img src="https://i.stack.imgur.com/HNf9q.png" alt="enter image description here"></p> <p>I want to show exactly the same output that facebook linter generate to show the product image, description to my user. </p> <p>thanks in advance</p>
 

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