It could be that there are duplicate Open Graph meta tags being generated AFTER your special hook. Priority would be given to the later tags, which means your customizations don’t happen.
Try setting the order of your hook later, so that it happens after whatever else might be generated:
// default is 10; I'm using 11 arbitrarily
add_action( 'wp_head', 'insert_fb_in_head', 11 );
More importantly, though, you need to confirm nothing else is generating OG. Check your plugins, and consider using on that easily lets you customize OG data as you need, like Complete Open Graph:
Related Posts:
- Conditionally add apt. Open Graph meta data to different pages on WordPress site
- Facebook meta tags not working properly on WordPress Site
- Open graph issue on my theme
- Facebook comments box on front page
- How to get user-meta from Social Login registered users?
- Installing Facebook comment plug in without loosing all previous wordpress comments?
- Top 3 posts in last week ordered by Facebook and Twitter share counts
- Facebook Like Button On Individual Comments
- Is it possible to integrate WordPress *posts* and social media (Facebook, Google+, Twitter)? [closed]
- Allow Facebook to preview posts before published
- Shortcode in AJAX popup
- Are there any plugins yet that support Facebook Like, Google +1 and allow Social Interaction tracking on Google Analytics
- WordPress Social Login > Post to a users Facebook wall
- Facebook plugin shows existing comments
- Facebook Like needs confirmation?
- Is there a way to share your Facebook Page’s stream on a WordPress page or post?
- What is generating my meta og:description?
- Updating the Drag-To-Share eXtended share URLs?
- Integrate BuddyPress & Facebook
- Facebook-like Notification Plugin for WordPress Community Blog Sites?
- Want to take Facebook Page posts and turn them into blog post
- Set plugin-values when creating post via REST-API
- Restrict access to content in conjunction with facebook connect & google login
- Integrate Facebook comments with native comments
- How do post a Photo to Facebook when a post is published? [closed]
- How to add FB like + share AND also other Social Buttons on ALL pages and posts?
- Is there a social members only login plugin for WordPress? [closed]
- Posting from WordPress to Facebook [closed]
- How to grab facebook page feed?
- Socialite WP plugin, unable to obtain API keys from FB
- Where is this strange og:description coming from?
- Shortcode does not expand in Facebook like
- how do i change my website facebook login button to another text immediately user login? [closed]
- HTTPS connection with wampserver for “Facebook for WordPress” plugin
- Error: Can´t access facebook comment plugin admin page
- Facebook ‘Share’ and ‘Like’ on individual posts
- Facebook and Twitter share buttons not working [closed]
- Change the Simple Facebook Connect popup position
- Publishing a video from blog to youtube
- How to get Facebook comment plugin in blog? [closed]
- Displaying the facebook profile picture in the WP-FB AutoConnect widget?
- Allow webp use on website but disallow webp as featured image during post creation
- How to stop Facebook mobile in-app browser cache on WordPress
- Facebook sharing image error with facebook debug
- Facebook Quote Plugin for Blockquote?
- How to display the Facebook like count in WordPress theme [closed]
- Plugin, add opengraph tags after form submit
- How to display single arbitrary facebook post with a shortcode?
- Plugin used only on some pages – not widget
- Facebook Feed Grabber Cache Relative to Dev Machine, not Server Install
- Remove ‘Publish to Facebook’ checkbox for Facebook page publish plugin
- Facebook Like Button with NextGen Gallery
- Overriding FB Auto Connect plugin function displayed in footer
- wp_update_post call really slow when official Facebook plugin is installed
- Publishing videos and images from blog to facebook
- Display Facebook photo albums and photo comments?
- Make a magic tag work with Custom Post Types
- Facebook like plugin with Multi Option-Needed [closed]
- Looking for Plugin that displays Facebook group’s photos [closed]
- Facebook comment into my blog
- Serious social interaction [closed]
- True or False: Is an Apache error or PHP error the same as a WordPress error?
- Publish post facebook page & twitter automatically [closed]
- Searching users with WP_List_Table plugin
- Security error WP 4.0 + WP phpBB Bridge [closed]
- Execute a function using ajax
- Difference between register_block_type & wp.blocks.registerBlockType
- Adding Attachment Display Settings in custom media frame
- Is it possible to install two mail plugins together in a single WordPress site? How to do it? [closed]
- Can’t add custom Taxonomy to Custom Post Type
- add_menu_page does not seem to work in a class
- Install and activate plugins across 200 wordpress installations via SSH
- WordPress plugin subscribe2 not looking the same as before migration
- Multiple instance of data in plugin custom database table on plugin activation
- Cart66 localization hardcode strings [closed]
- XML parser plugin
- Is it safe to use admin-ajax.php in the frontend?
- plugins not working in custom theme
- Add item to the woocommerce dashboard menu from a plugin
- Sucuri SiteCheck failing on domain with iThemes Security Pro plugin
- Make get_permalink() work outside the Loop using filters
- WordPress Plugin- How to Insert Html&JS code in specific Page and specific Div
- add products to WordPress site automatically
- How can i solve php upgrade problem
- Hide button after form submit and save state to localstorage
- Cron job emails blank
- Molpay recurring payment in WordPress
- How To Edit User Profile In Front End?
- Is it possible to get a shortcode generated by a plugin, then, using a function, create a new post using that shortcode?
- How to copy data from user profile page (profile.php) to theme customizer
- Problem with wp_editor
- Add plugin by SVN. Current version problem
- Can’t upgrade themes or plugins after upgrading WordPress to 4.4
- Elfsight Google Maps Plugin Version 2.1.0 : Location image input not found [closed]
- Eliminate Render blocking CSS?
- Injecting a javascript banner code right before & after wordpress navigation menu
- Continuous jQuery Slider / Carousel Plugin with linkable slides [for WooCommerce]
- How can i add a random redirect button in wordpress? [closed]
- Outputting custom field query from a plugin to the website header
- Change social icon in twenty twenty three theme