getGlobalStoryTargets()
function to retrieve all active story targets across your application with intelligent filtering and optimized sorting. Build comprehensive story discovery feeds with real-time updates and smart content prioritization.
Smart Filtering
Intelligent query options that prioritize unseen content for optimal engagement
Optimistic Sync
Prioritizes unsynced story targets for immediate user feedback
Flexible Sorting
Multiple query options for different discovery and engagement patterns
Global story targets provide a comprehensive view of all story activity across your application, with intelligent filtering to surface the most relevant content to users.
Query Options Overview
ThegetGlobalStoryTargets()
function supports four distinct query options, each optimized for different user experience patterns and discovery scenarios:
SMART
Recommended: Combines unseen and seen targets for optimal discovery
UNSEEN
Engagement Focus: Only targets with unviewed stories
SEEN
Revisit Mode: Only targets with all stories viewed
ALL
Complete View: All active story targets regardless of view status
Query Options Detailed
Smart Query (Recommended)
TheSMART
option provides the optimal user experience by intelligently combining unseen and seen story targets in a single collection.
Behavior | Description |
---|---|
Content Order | Unseen targets first, then seen targets |
Prioritization | Unsynced targets appear at the top |
Sorting | Recent creation first within each category |
Use Case | Primary story discovery feeds |
Individual Query Options
Option | Filter | Sorting | Unsynced Targets | Best For |
---|---|---|---|---|
SEEN | Only viewed targets | Recent creation first | Excluded | Revisiting content |
UNSEEN | Only unviewed targets | 1st: Unsynced first 2nd: Recent creation | Included | New content focus |
ALL | No filter | 1st: Unsynced first 2nd: Recent creation | Included | Complete overview |
SMART | Combined UNSEEN + SEEN | Concatenated results | Included | Optimal discovery |
Implementation
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
queryOption | Enum | Yes | Filtering and sorting strategy for story targets |
Related Topics
Get Story Targets
Retrieve specific story targets with individual and multi-target queries
Get Stories
Access actual story content with filtering and real-time updates
Story Analytics
Track global story performance and engagement metrics
Live Collections
Understanding live collection patterns and real-time synchronization