coder1.com

  • home
  • drupal articles
  • contact
Home

Facebook

Controlling the Image Choice When Sharing with Facebook

Mike Milano — November 10, 2011 - 5:40am

Recently I had a client who wasn't happy with the images Facebook was providing as options when a user shared one of their product pages with Facebook.

You can give Facebook hints on what images you would like them to use.

Just add this code to your page for the images you would like to be in the selection:

<link rel="image_src" type="image/jpeg" href="http://example.com/images/my-image.jpg"/>

In my case, the image I defined here was the first choice that appeared on Facebook.

You can define more than one image for the available options.

  • Facebook
  • Add new comment
  • Read more
Syndicate content

Poll

Have you used any NoSQL Databases?:

User login

  • Request new password

Navigation

  • Recent posts

  • home
  • drupal articles
  • contact