{"record":{"id":"4fffc3a03549e1a6","repo":"jackwener/OpenCLI","slug":"facebook-did-not-show-any-feed-posts-for-this-acco","errorCode":null,"errorMessage":"Facebook did not show any feed posts for this account.","messagePattern":"Facebook did not show any feed posts for this account\\.","errorType":"error_code","errorClass":"EmptyResultError","httpStatus":null,"severity":"warning","filePath":"clis/facebook/feed.js","lineNumber":380,"sourceCode":"      `Failed to read facebook feed: ${err instanceof Error ? err.message : err}`,\n      'Facebook may not have rendered or the feed markup may have changed.',\n    );\n  }\n\n  if (!payload || typeof payload !== 'object' || !Array.isArray(payload.rows)) {\n    throw new CommandExecutionError('facebook feed returned malformed extraction payload');\n  }\n\n  if (payload.status === 'auth') {\n    throw new AuthRequiredError('www.facebook.com', 'Open Chrome and log in to Facebook before retrying.');\n  }\n\n  if (payload.rows.length > 0) {\n    return payload.rows;\n  }\n\n  if (payload.status === 'empty') {\n    throw new EmptyResultError('facebook feed', 'Facebook did not show any feed posts for this account.');\n  }\n\n  const diagnostics = payload.diagnostics || {};\n  if (diagnostics.articleCount || diagnostics.actionMenuCount || diagnostics.fallbackActionCount || diagnostics.mainTextLength > 200) {\n    throw new CommandExecutionError(\n      'facebook feed page rendered but no feed rows could be extracted',\n      `Diagnostics: articles=${diagnostics.articleCount || 0}, actions=${diagnostics.fallbackActionCount || 0}, mainTextLength=${diagnostics.mainTextLength || 0}.`,\n    );\n  }\n\n  throw new EmptyResultError('facebook feed', 'No Facebook feed content was visible in the current browser session.');\n}\n\nconst command = {\n  site: 'facebook',\n  name: 'feed',\n  access: 'read',\n  description: 'Get your Facebook news feed',","sourceCodeStart":362,"sourceCodeEnd":398,"githubUrl":"https://github.com/jackwener/OpenCLI/blob/49907e53dc3ade5c223ff0c4c2c2785687cec4e6/clis/facebook/feed.js#L362-L398","documentation":"If the feed extraction ran but found zero rows and the payload reports status === 'empty', the library throws EmptyResultError('facebook feed', 'Facebook did not show any feed posts for this account.'). This is a legitimate empty state, distinct from auth problems or extraction failures.","triggerScenarios":"payload.rows is an empty array AND payload.status === 'empty' — Facebook itself rendered an explicitly empty feed for the account.","commonSituations":"Brand-new or dormant account with no feed content; Facebook served a 'no posts' placeholder; heavy feed personalization shows nothing for restricted accounts; region with limited feed content.","solutions":["Scroll/interact in the browser so Facebook populates the feed, then retry.","Use a different limit (e.g. --limit 10) and confirm the account actually has feed posts in a normal browser.","Check the account isn't flagged/restricted (feeds can be hidden for policy-flagged accounts).","Treat as an expected empty result in calling code if the account is known to have no feed."],"exampleFix":"// before\nconst rows = await getFacebookFeed(page, { limit: 10 });\n// after\nlet rows;\ntry {\n  rows = await getFacebookFeed(page, { limit: 10 });\n} catch (err) {\n  if (err.name === 'EmptyResultError') rows = [];\n  else throw err;\n}","handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":"try {\n  const rows = await getFacebookFeed(page, { limit: 10 });\n} catch (err) {\n  if (/did not show any feed posts/i.test(err.message)) {\n    const rows = []; // treat as legitimate empty feed\n  } else throw err;\n}","preventionTips":["Confirm the account actually has feed posts before automating.","Interact/scroll in the browser to prime a personalized feed for new accounts.","Treat this as an expected empty state in dashboards/scripts.","Check account restrictions if empty results persist."],"tags":["empty-result","facebook","feed"],"backgroundTag":"empty-result-set","analyzedSha":"49907e53dc3ade5c223ff0c4c2c2785687cec4e6","analyzedAt":"2026-08-29T08:14:47.543Z","schemaVersion":2},"datasetVersion":"2026-08-29T12:17:43.993Z"}