I tried to implement sharing facebook posts on my client's website following the instructions provided in the Facebook embedded post documentation.
The website is built using the React NEXT.js framework.
I added the SDK right after opening the body tag in my _document.tsx file.
<div id="fb-root"></div>
<script async defer crossorigin="anonymous" src="https://connect.facebook.net/en_GB/sdk.js#xfbml=1&version=v11.0" nonce="Z4T7Zvkv">
After that, I inserted the necessary code into the required page as per the documentation provided.
<div class="fb-post" data-href="https://www.facebook.com/20531316728/posts/10154009990506729/" data-width="500" data-show-text="true"><blockquote cite="https://www.facebook.com/20531316728/posts/10154009990506729/" class="fb-xfbml-parse-ignore">Posted by <a href="https://www.facebook.com/facebookapp/">Facebook App</a> on <a href="https://www.facebook.com/20531316728/posts/10154009990506729/">Thursday, 27 August 2015</a></blockquote></div>
Although I followed the documentation guidelines, the actual display of the post differs from what was expected.
An example of how the post should look according to the documentation can be seen here.
However, the current display of the post on my website is shown in this image.
In Chrome, upon performing a Normal Reload, the post does not show up but only the blockquote text is visible. On the other hand, after doing a Hard Reload, the post displays correctly. But if followed by a Normal Reload, it reverts back to showing just the blockquote text.
I am seeking assistance in resolving this issue. Any help would be greatly appreciated.