Skip to content

fix(facebook): update stale unavailable marker string - #490

Merged
kaifcodec merged 1 commit into
kaifcodec:mainfrom
A-S-Manoj:fix/facebook-unavailable-marker
Aug 2, 2026
Merged

fix(facebook): update stale unavailable marker string#490
kaifcodec merged 1 commit into
kaifcodec:mainfrom
A-S-Manoj:fix/facebook-unavailable-marker

Conversation

@A-S-Manoj

Copy link
Copy Markdown
Contributor

Summary

Facebook updated the copy on its profile-not-found interstitial from "This content isn't available right now" to "This content isn't available at the moment". The hardcoded UNAVAILABLE_MARKER in facebook.py no longer matched this string, so _process_profile_response() fell through to the generic catch-all and returned Result.error("Unexpected response body, report it via GitHub issues.") instead of Result.available() for non-existent usernames.

Fixes #484

Root Cause

Diffed raw HTML (using full browser-style request headers to get past Facebook's bot detection) between a known-existing profile and a non-existent username:

  • The og:title / og:url meta tag based "taken" detection still works correctly — no change needed there.
  • Only the "not found" marker string had drifted from Facebook's side.

Fix

- UNAVAILABLE_MARKER = "This content isn't available right now"
+ UNAVAILABLE_MARKER = "This content isn't available at the moment"

Testing

Ran locally against a mix of known-taken and known-available usernames:

@kaifcodec kaifcodec left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@A-S-Manoj Thank you for the fix.
I tested it and it works now.

@kaifcodec
kaifcodec merged commit 40c08c0 into kaifcodec:main Aug 2, 2026
2 checks passed
@kaifcodec kaifcodec added the bug fix Fixed a bug in existing files label Aug 2, 2026
@A-S-Manoj
A-S-Manoj deleted the fix/facebook-unavailable-marker branch August 2, 2026 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug fix Fixed a bug in existing files

2 participants