Reworking Facebook Comment Inclusion
|April 26th, 2018|
The information I'm trying to include here, however, is fully public: if you follow a link to an example Facebook crosspost while not logged into Facebook you can still read the comments. So I've switched from using the API, with its privleges to read anything I can read, to just scraping the public-facing page.
This has two components:
When trying to load comments, use those saved tokens to make the same kind of AJAX request Facebook's front end makes. This happens in response to a user viewing a post with comments, and is in this script.
(This is how my Google Plus integration has worked from the beginning, except that it doesn't require any tokens and so only needs the second stage.)
Comment via: google plus, facebook