-
Hello. I’m having issues with my ACF field group. I use ACF to put in data for Rank Math. Below is this code I have for adding a 1200×630 image as a Facebook Share Image. But no matter what, I’m getting a “The ‘og:image’ property should be explicitly provided, even if a value can be inferred from other tags.” message from Facebook Debugger.
In the code below, “social” is the group, “image” is the sub field. The image field is set to array
add_filter( ‘rank_math/opengraph/facebook/og_image’, function( $fbimage ) {
global $post;
$fbimage = get_field(‘social_image’, $post->ID); /* Insert specific field here */
return $fbimage;
});
The ticket ‘ACF image not connecting into OG:Image’ is closed to new replies.
