OGP のユーザーエージェントごとに画像サイズを切り替えたい
とりあえず UA について情報を集めるfacebookexternalhit/1.1;line-poker/1.0
FB: facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)
Slack: Slackbot-LinkExpanding 1.0 (+https://api.slack.com/robots)
twitter: Twitterbot/1.0
X でも同じかな?
Images for this Card support an aspect ratio of 1:1 with minimum dimensions of 144x144 or maximum of 4096x4096 pixels. Images must be less than 5MB in size. The image will be cropped to a square on all platforms. JPG, PNG, WEBP and GIF formats are supported. Only the first frame of an animated GIF will be used. SVG is not supported.
Images for this Card support an aspect ratio of 2:1 with minimum dimensions of 300x157 or maximum of 4096x4096 pixels. Images must be less than 5MB in size. JPG, PNG, WEBP and GIF formats are supported. Only the first frame of an animated GIF will be used. SVG is not supported.
The minimum allowed image dimension is 200 x 200 pixels.
The size of the image file must not exceed 8 MB.
Use images that are at least 1200 x 630 pixels for the best display on high resolution devices. At the minimum, you should use images that are 600 x 315 pixels to display link page posts with larger images.
We've also re-designed link page posts so that the aspect ratio for images is the same across desktop and mobile Feed. Try to keep your images as close to 1.91:1 aspect ratio as possible to display the full image in Feed without any cropping.
Our crawler only accepts gzip and deflate encodings, so make sure your server uses the right encoding.