Brian Schlenker Brian Schlenker - 26 days ago 8
Javascript Question

Embed a Facebook Page Post including Comments

I've been looking at how to embed a Facebook Page Post using this documentation. I like the way this looks, but it doesn't allow for the comments to also be shown at the same time. My goal is to create a dashboard of page post and display it on a TV in the hallway. None of the posts have more than 10 comments so it wouldn't get out of hand. Is there a way to accomplis this using the api I linked, or do I need to spin up my own iframe to include the comments?

Answer

It appears the best way to list the comments of a Facebook page post is to use the Facebook Graph API. Here is a direct link to the comments API:

https://developers.facebook.com/docs/graph-api/reference/v2.5/object/comments