Chrome Capture Setup

Use the Chrome extension to capture the currently open Facebook post and visible comments, then send them into your existing analyzer flow without changing new-analysis.php. Your current Meta-based Discovery page can remain available as an optional advanced route.

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

  1. Put the extension files into a local folder on your computer, for example:
    fb-capture-extension/
  2. Open Chrome and go to:
    chrome://extensions/
  3. Turn on Developer mode.
  4. Click Load unpacked.
  5. Select your local extension folder that contains:
    manifest.json popup.html popup.css popup.js content.js
  6. 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

  1. Open a Facebook Page or post in Chrome.
  2. Expand the comments you want visible on the page.
  3. Click the extension icon.
  4. In the App Base URL field, enter your app base URL:
    https://fb.infoquest.biz
  5. Click Capture.
  6. Review the captured post text and comment list.
  7. Deselect any comments you do not want to analyze.
  8. Click Send to Analyzer.
  9. 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.