# Social accounts · Portal · MKDRealtor.com

Proposal mockup MKDRealtor.com — UX examples (not production)
All screens

# Social accounts

Signed in as Monica Dhillon · Sign out
UX note: Add via OAuth (Meta / LinkedIn). Re-authorize when token expires or refresh fails — same connect button, no data loss.

Connect native APIs (Meta + LinkedIn). Tokens encrypted. Re-auth when expired or scopes change.

## Add a social account

Flow: click Connect → provider consent screen → callback stores encrypted token + SocialAccount row → status = Connected.

## Connected accounts

Platform | Account | Status | Token | Actions
--- | --- | --- | --- | ---
Facebook | Monica Dhillon · MKDRealtor.com Page ID · 1029384756 | Connected | Expires Oct 2026 |
Instagram | @monicadhillonhomes Linked to FB Page above | Connected | Expires Oct 2026 |
LinkedIn | Monica Dhillon Member + Company page | Needs re-auth | Expired Jul 12 · refresh failed |

## When to re-auth

- Token expired / refresh failed (banner on compose + Accounts)
- Provider asks for new scopes (e.g. Meta Graph version bump)
- You switched Page / IG account
- Password change or security review on the social side

Re-auth = same OAuth connect flow; we replace the encrypted token and clear the “needs re-auth” flag. Scheduled posts stay queued until token works again.

## Health checks

Last refresh job — today 6:00a · 2 OK · 1 failed (LinkedIn)

Failed publish (7d) — 1 IG (media format) · 2 LI (auth)

Open composer — platforms that need re-auth are disabled until fixed.