I have a Next.js application in which I am having trouble sharing content to Facebook and Twitter. I have added the needed open graph meta tags in the head tags of the document and am using React Helmet to change those meta tags dynamically. If I use the inspector and view the elements and look inside the head I can see the open graph meta tags being changed with the correct information. However when I click to share to Facebook or Twitter, I am not seeing any of the open graph data being inserted into the resulting post or tweet.
Can anyone give me any advice on what is causing this and how I can go about fixing it? I thought it was as simple as just adding the correct meta tags and then sharing but I am having a very difficult time with this. Any help would be greatly appreciated!