From da8f43ebe3a1d0993ef84016b7b47e28fe46260d Mon Sep 17 00:00:00 2001 From: Ivan Paramonau Date: Fri, 3 Jul 2026 06:46:03 -0400 Subject: [PATCH 1/2] Fix: FB's 404 on valid posts with visibility restrictions --- plugins/domains/facebook.com/facebook.meta-fallback.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/domains/facebook.com/facebook.meta-fallback.js b/plugins/domains/facebook.com/facebook.meta-fallback.js index e87a84b94..f5299d3cf 100644 --- a/plugins/domains/facebook.com/facebook.meta-fallback.js +++ b/plugins/domains/facebook.com/facebook.meta-fallback.js @@ -9,7 +9,8 @@ export default { getData: function(url, __statusCode, options, cb) { - return __statusCode !== 429 && __statusCode !== 403 &&__statusCode !== 508 + return __statusCode !== 429 && __statusCode !== 403 &&__statusCode !== 508 + && __statusCode !== 404 // Real 404s are handled by `fb-error`, the redirects to "/unsupportedbrowser" are likely due to the requirement to be logged in, allowing it. ? cb({ responseStatusCode: __statusCode, @@ -17,7 +18,7 @@ export default { : cb(null, { meta: {}, - message: `Facebook is rate-limiting. Meta disabled.` + message: __statusCode !== 404 ? 'Facebook is rate-limiting. Meta disabled.' : 'Post visibility seem restricted. Allowing.' }) } }; \ No newline at end of file From c40ab8a48e2bf15f536b45f9710e372a2cccbd66 Mon Sep 17 00:00:00 2001 From: Ivan Paramonau Date: Fri, 3 Jul 2026 07:03:23 -0400 Subject: [PATCH 2/2] make it work only with a feature flag --- plugins/domains/facebook.com/facebook.meta-fallback.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/domains/facebook.com/facebook.meta-fallback.js b/plugins/domains/facebook.com/facebook.meta-fallback.js index f5299d3cf..cc7839ee9 100644 --- a/plugins/domains/facebook.com/facebook.meta-fallback.js +++ b/plugins/domains/facebook.com/facebook.meta-fallback.js @@ -10,7 +10,7 @@ export default { getData: function(url, __statusCode, options, cb) { return __statusCode !== 429 && __statusCode !== 403 &&__statusCode !== 508 - && __statusCode !== 404 // Real 404s are handled by `fb-error`, the redirects to "/unsupportedbrowser" are likely due to the requirement to be logged in, allowing it. + && !(__statusCode === 404 && options.getProviderOptions('facebook.ignore_http_404', false)) // Real 404s are handled by `fb-error`, the redirects to "/unsupportedbrowser" are likely due to the requirement to be logged in, allowing it. ? cb({ responseStatusCode: __statusCode,