$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>facebook - Sharing images to social media - issue with aspect ratio|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

facebook - Sharing images to social media - issue with aspect ratio

matteradmin10PV0评论

I am designing a website that will have a lot of images, and I want those images to be shareable to Facebook.

I know this is possible with social media plugins like "Easy Social Share Buttons," where you can hover over the image and the social media icons appear.

BUT, when you share the image, it gets posted to Facebook like a regular link share - it becomes a featured image with a 2:1 aspect ratio (or a thumbnail) and a link to the website.

Most of my images will be vertical (or at worst, 1:1), and I want to share the full image in its original aspect ratio on Facebook. If my image is not already at that 2:1 ratio, it chops off the top and bottom of the image when sharing to Facebook.

Is there a plugin that allows me to share the entire image? Perhaps by sharing the content to Facebook as an image and not a link?

OR, is it possible to develop a plugin that would do this?

The demo for a plugin called "Monarch" is a good example of how the hover icons share the content as a link rather than an image (click the link below and share the image about two-thirds down the page to Facebook.)

Example: /

Thanks for your help!

Post a comment

comment list (0)

  1. No comments so far