Adding Image on Website for Facebook Share


How to add an image to my Website to show up on Facebook when someone share it?



Normally, Facebook will automatically select an image from your Website to show with your Website link.

If you want to control it, you can two pieces of code to your Website:

1. Add a namespace in the <html> tag:

<html xmlns:fb="">

2. Add a <meta> tag in the header section:

<meta property="og:image" content="image-url" />

If you have trouble, you can use this Facebook tool to debug:


⇒ Facebook for Android

⇐ Adding Facebook Like Button to Website

⇑ General Questions on Facebook

⇑⇑ Facebook - Frequently Asked Questions

2015-10-25, 1265👍, 0💬