Adding Image on Website for Facebook Share

Q

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

✍: FYIcenter.com

A

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="http://ogp.me/ns/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: https://developers.facebook.com/tools/debug/og/object/

 

Facebook for Android

Adding Facebook Like Button to Website

General Questions on Facebook

⇑⇑ Facebook - Frequently Asked Questions

2015-10-25, 1605🔥, 0💬