@Kevin-Hamilton commented on Thu Mar 18 2021
Is your feature request related to a problem? Please describe.
LinkedIn gives preference to oEmbed over og:image meta tags. The oEmbed "thumbnail_url" is taken from the featured image on the page rather than any social image setting made in AIOSEO.
Describe the solution you'd like
I would like if the AIOSEO plugin could apply its social image settings to the oEmbed content in WordPress. If that is not possible, then at least an option to disable oEmbed (with appropriate warnings/disclaimers to the user), which would then force LinkedIn to fallback to og meta tags. My current workaround is to remove oEmbed by adding the following to the functions.php which in my testing does appear to get the job done:
remove_action('wp_head', 'wp_oembed_add_discovery_links', 10);
remove_action('wp_head', 'wp_oembed_add_host_js');
Additional context
Related: https://wordpress.org/support/topic/linkedin-showing-wrong-image/
@Kevin-Hamilton commented on Thu Mar 18 2021
Is your feature request related to a problem? Please describe.
LinkedIn gives preference to oEmbed over og:image meta tags. The oEmbed "thumbnail_url" is taken from the featured image on the page rather than any social image setting made in AIOSEO.
Describe the solution you'd like
I would like if the AIOSEO plugin could apply its social image settings to the oEmbed content in WordPress. If that is not possible, then at least an option to disable oEmbed (with appropriate warnings/disclaimers to the user), which would then force LinkedIn to fallback to og meta tags. My current workaround is to remove oEmbed by adding the following to the functions.php which in my testing does appear to get the job done:
Additional context
Related: https://wordpress.org/support/topic/linkedin-showing-wrong-image/