Social Media Bridge
A captured photo moves from the camera preview through event tagging, multi-network posting, and post-publish management — Facebook, LinkedIn and X, with API keys that never leave the device.
State diagram
stateDiagram-v2
[*] --> CameraOpen
CameraOpen --> Captured : photo taken
Captured --> PreviewEditing : posting preview dialogue
PreviewEditing --> EventTagging : confirm location tag + share targets
state EventTagging {
[*] --> SelectExisting
[*] --> EnterTitle
[*] --> NameLater
}
EventTagging --> Posting : proceed
Posting --> Posted : all selected networks succeed
Posting --> PartiallyFailed : one or more networks fail
Posted --> Recorded : link, coords, timestamp, title, tags stored
Recorded --> Deleted : "Delete image" (per network)
Recorded --> InfoEdited : "Edit info"
Recorded --> EventReassigned : "Set event"
InfoEdited --> Recorded
EventReassigned --> Recorded
Deleted --> [*]
States
| State | Meaning |
|---|---|
| CameraOpen / Captured | Modal camera preview, then a taken photo. |
| PreviewEditing | Thumbnail + frame preview; choose location tag and share targets. |
| EventTagging | Pick a nearby event, name one, or defer with "Name later". |
| Posting / Posted / PartiallyFailed | Publish attempt across selected networks and its outcome. |
| Recorded | Long-lived state: link, coordinates, timestamp, title and tags kept. |
| Deleted / InfoEdited / EventReassigned | Post-publish actions from the record's context menu. |
Reading the diagram
EventTaggingis a one-shot choice, not a loop: the user either picks a nearby event, names one on the spot, or defers with "Name later".- Network API keys never appear in this diagram — they live in device secure storage and are a precondition for
EventTaggingeven reaching a given network, not a state of the post itself. Recordedis the long-lived state a post sits in;Deleted,InfoEdited, andEventReassignedare all reachable from the record's context menu at any later time.