0

I have a facebook share button on my website which works nice. However when the user click on the button, facebook dialog window opens and it shows preview of the page content, similar to this:

enter image description here

The problem in my case is, that the dialog shows actually javascript on the page as description, so I was wondering if that description can be customized to something else instead of page content?

I read somewhere that I should use the following meta tags:

<meta property="og:title" content="My Title"/>
<meta property="og:url" content="http://mywebsiteurl.com"/>
<meta property="og:description" content="Test."/>

but instead of getting 'Test', it's still showing javascript code there. Is there any solution for this problem ?

Zed
  • 5,683
  • 11
  • 49
  • 81
  • It might be cached. There's a tool at https://developers.facebook.com/tools/debug/ that will allow you to clear the facebook cache an scrape the page again. – mark_c Aug 20 '16 at 18:08
  • yeah it was cached, that was the problem, thanks. – Zed Aug 20 '16 at 18:13

0 Answers0