diff --git a/plugins/domains/facebook.com/facebook.meta-fallback.js b/plugins/domains/facebook.com/facebook.meta-fallback.js index e87a84b94..cc7839ee9 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 && 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, @@ -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