1

Our website meta tag contains special characters such as "í and é" and when I share the website on Facebook the special characters show in a weird way, image attached. How can this be fixed? enter image description here

Daniel G. Gabori
  • 65
  • 1
  • 2
  • 8
  • That is obviously some character encoding problem. What’s the encoding your site uses? – CBroe Mar 08 '16 at 10:46
  • where can i change the encoding? The developer doesn't answer and its fairly urgent. The site is made up of php files – Daniel G. Gabori Mar 08 '16 at 11:38
  • Depending on how your site is build, this might be a broader operation, and not done by changing one single thing. I suggest you start by reading http://stackoverflow.com/q/279170/1427878 to get a feel for where the character encoding comes into play. Make backups, before you change anything. – CBroe Mar 08 '16 at 12:04

1 Answers1

1
  1. Include the Open Graph XML namespace extension to your HTML declaration

< html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://ogp.me/ns/fb#">

  1. Inside your use the following meta tag to define the image you want to use

< meta property="og:image" content="your_image_here" />

3.Visit https://developers.facebook.com/tools/debug/ and follow the instructions to change the final image for the preview.

smobx
  • 67
  • 9