Facebook introduced embedded posts (https://developers.facebook.com/docs/plugins/embedded-posts/), but it only lets me embed a given post onto my webpage.
I would like to automatically embed the newest Facebook post from our company Facebook profile into our webpage. Is that possible?
Choose the post you want to show. Click on the top right-hand corner options menu and choose “embed post” Copy and paste the code into your blog or website.
To embed a Facebook Event Feed on your website, go to the Page Plugin and paste your Facebook Page URL into the box. Then, type "events" into the Tabs section. Now, click "Get Code" and copy-and-paste that code into your existing site using the steps outlined above. And there you have it!
Click the “Select a Blog” menu and select your website from the drop-down list. A preview is displayed showing what updates will look. The next time you add a new post to your website, it will automatically post to your Facebook Wall as a status update.
Is this what you're looking for?
<iframe src="http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2FYOUR-FB-PAGE-ID&width=600&colorscheme=light&show_faces=true&border_color&stream=true&header=true&height=435" scrolling="yes" style="border:none; overflow:hidden; width:600px; height:430px; background: white; float:left; " allowtransparency="true" frameborder="0"></iframe>
Replace YOUR-FB-PAGE-ID with the Facebook page's ID.
JSFiddle example
Source: https://www.youtube.com/watch?v=vmFShEeI5qg
The solution above suggested this, but you can always get a Page Access Token (you need a user access token from a user who is an admin of that page before requesting the page access token) and request access to that page's feed so that you can get the latest post ID and embed that post with the ID.
Page access tokens: https://developers.facebook.com/docs/facebook-login/access-tokens/#pagetokens
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With