Embedding with HTML and Javascript

Where business professionals discuss big database and data management.
Post Reply
Bappy32
Posts: 598
Joined: Thu Jan 02, 2025 6:49 am

Embedding with HTML and Javascript

Post by Bappy32 »

Now go to the WordPress post where you want to embed the Facebook post and put the link address you just copied between [fbembed] and [/fbembed] .

And then there is a third option: with HTML and Javascript. To use this option, you need to know how to add code to your website and how to modify files. The code you need can be downloaded here (rtf file).

The code can be divided into two parts. The first part, which runs from <div id="fb-root"> to </script>, connects to Facebook. You need this part once per page. It does not matter how many posts you want to embed.

The second part: <div class=”fb-post” data-href=”HERE YOUR URL”></div> is used to actually load the post. Paste this part at the place on your website where you want the embedded post to appear. Replace 'HERE saudi arabia mobile phone number list YOUR URL' with the link to your Facebook post. How to find that is explained in option 2.

Do you have any questions?
If you have any questions about the video or a question, tip or topic that we should definitely talk about? Then be sure to leave a comment! Who knows, we might soon discuss your question in a video. Don't want to miss anything from Frankwatching video? Then subscribe to our YouTube channel .
Post Reply