How it works
The extension captures visible post text and visible comments from the current Facebook tab,
sends that data to /api/extension-to-draft.php,
stores the same session draft structure already used by your Discovery flow,
and then opens pages/new-analysis.php.
Important: This does not replace your analyzer. It is only a new intake path.
Expected flow
Facebook tab
-> Chrome extension capture
-> /api/extension-to-draft.php
-> $_SESSION['discovery_draft']
-> /pages/new-analysis.php
-> existing analyzer
Files added for this path
- api/extension-to-draft.php
- chrome-extension/manifest.json
- chrome-extension/popup.html
- chrome-extension/popup.css
- chrome-extension/popup.js
- chrome-extension/content.js
- pages/chrome-capture.php
Install the Chrome extension
-
Put the extension files into a local folder on your computer, for example:
fb-capture-extension/
-
Open Chrome and go to:
chrome://extensions/
-
Turn on Developer mode.
-
Click Load unpacked.
-
Select your local extension folder that contains:
manifest.json
popup.html
popup.css
popup.js
content.js
-
Pin the extension to your toolbar so it is easy to use while browsing Facebook.
Note: This v1 is meant for manual, user-invoked capture of the current tab only.
It is not designed for automated crawling or bulk harvesting.
Use it
-
Open a Facebook Page or post in Chrome.
-
Expand the comments you want visible on the page.
-
Click the extension icon.
-
In the App Base URL field, enter your app base URL:
https://fb.infoquest.biz
-
Click Capture.
-
Review the captured post text and comment list.
-
Deselect any comments you do not want to analyze.
-
Click Send to Analyzer.
-
The extension opens your app and loads the existing analyzer page with the imported draft.
Recommended App Base URL
Copy this into the extension popup.
https://fb.infoquest.biz
Endpoint used by the extension
https://fb.infoquest.biz/api/extension-to-draft.php
Troubleshooting
No comments detected
Expand more comments on Facebook, then run Capture again.
The extension only captures comments that are currently visible in the page DOM.
It opened the app but nothing was prefilled
Make sure your extension App Base URL points to the exact folder where this app lives,
such as https://infoquest.biz/fb.
The Facebook page was captured poorly
This v1 uses best-effort DOM extraction. Facebook markup can vary.
Try opening a single post view and expanding the thread before capturing.
GET URL too long
This v1 intentionally limits text and comment volume. If you need larger captures later,
the next upgrade is a POST handoff with a short-lived token or server-side authenticated AJAX bridge.
Optional UI placement
You do not need to change existing analyzer files. Just add a normal link anywhere in your app UI:
<a href="/fb/pages/chrome-capture.php">Chrome Capture</a>
Good places: sidebar, settings page helper box, or discovery page intro card.