Skip to main content

Feed

Overview

social.plus SDK provides a powerful Feed feature that allows users to stay informed, communicate, and express themselves through ranked posts. The Feed system creates an engaging timeline experience with intelligent content curation and multiple feed types to suit different user needs.

Feed Types

User Feed

A personalized collection of posts curated for an individual user’s timeline, providing relevant content they generate and interact with.

Community Feed

Posts generated by members of a particular community, fostering connection and engagement within specific groups.

Global Feed

Aggregated content from both User and Community feeds, providing a comprehensive view of all relevant content in the user’s network.

Key Features

Intelligent algorithms ensure users see the most relevant and engaging content based on their interests and community participation.
Advanced scoring system that considers engagement rate, posting time, and content updates to surface the most relevant posts.
Live feed updates ensure users always see the latest content without manual refresh.
Consistent feed experience across iOS, Android, Web, and Flutter applications.

Implementation

Feed management methods are contained in the AmityFeedRepository class. For querying posts from User Feed and Community Feed, refer to the Posts Query documentation.

Initialize Feed Repository

  • iOS
  • Android
  • TypeScript
  • Flutter
import AmitySDK

class FeedManager {
    private let feedRepository: AmityFeedRepository

    init() {
        // Initialize the feed repository
        self.feedRepository = AmityFeedRepository(client: AmityManager.shared.client!)
    }

    func setupFeedObserver() {
        // The repository is now ready for feed operations
        print("Feed repository initialized successfully")
    }
}

// Usage
let feedManager = FeedManager()

User Feed with Community Posts

The social.plus SDK includes a powerful user feed feature that enables querying both personal posts and community posts authored by a user, providing comprehensive user activity views across the platform.

Get User Feed API

Detailed Documentation Available - Complete API reference, implementation examples, and privacy rules for the getUserFeed functionality. Learn how to query user feeds with configurable community post integration.

Key Features

Flexible Feed Sources

Query personal posts, community posts, or both with configurable feed sources and privacy-aware filtering

UIKit Integration

Pre-built components with dropdown filters for seamless user feed implementation across platforms
Implementation Guide: For complete getUserFeed API documentation, implementation examples across all platforms, privacy rules, and configuration options, see the Get User Feed documentation.

Best Practices

Performance Optimization

  • Implement pagination for large feeds
  • Use lazy loading for images and media
  • Cache frequently accessed content
  • Optimize network requests with batching

User Experience

  • Provide loading states during content fetch
  • Implement pull-to-refresh functionality
  • Show empty states when no content is available
  • Handle offline scenarios gracefully