How can I have an image from ONTRApage show on Facebook Preview? [closed]

How do I get an image to show from an ONTRApage when I share it on Facebook? I want to make it so that the images from ONTRApages show up in the link image area when shared. Thanks!

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Frank
close date 2016-07-18 08:36:03.642575

1 answer

Sort by ยป oldest newest most voted

Topic moved to: https://support.ontraport.com/hc/en-u...

This is a really great question and you can customize it entirely to your liking with a little coding!

To choose which ONTRApages image shows when you share on Facebook, you'll need to place some code into the header area of your ONTRApage under Settings. Specifically, you are looking for the og:image tag. Without <meta property="og:image" content="https://my-website.com/images/my-sharer-image.jpg">, Facebook will grab the first image it finds on the site. Once you add that code though, it becomes up to you which image Facebook chooses.

Enter the code here.

Some advice:

Be sure to make the image you wish to show at least 1200 x 630 pixels or it may be cropped. Additionally, Facebook caches these images so if you ever need to force it to reset, check out this tool. For more best practices, check out this link.

Finally, here are some great resources you may need:

Happy sharing!

edit flag offensive delete publish link more

Question Tools

1 follower


Asked: 2015-11-23 09:50:57 -0700

Seen: 249 times

Last updated: Jul 18 '16