Custom Post Ranking
Algorithm Componentserview
Traditional feed systems display posts in chronological order, where newer content always appears first. While this approach has merit, it doesn’t consider user engagement or content quality. Our custom post ranking algorithm introduces intelligent content curation that prioritizes meaningful interactions and engaging content. Custom Post Ranking In our previous implementation of our global feed, we rank posts in chronological order. This means that newer posts will rank higher than older ones, thus, the former will show up higher in the feed. While this is not a bad algorithm, other factors should also be considered to determine the posts’ ranking in the global feed. With our new custom post ranking algorithm, we are using a smarter ranking in our global feed that supports a score-sorting mechanism. We focus on what we consider as “meaningful interactions”. This means that, aside from the post’s submission time, we also factor in user engagements, i.e., posts with more comments and reactions will have a higher ranking. In addition, we factor in the updates and edits done to the post.Algorithm Components
Engagement Rate
Posts with more comments and reactions rank higher. Comments score twice as much as reactions due to deeper engagement.
Time Decay
Newer posts naturally rank higher, with scores decreasing over time to maintain feed freshness.
Update Boost
Post edits and updates provide score boosts, keeping relevant content visible longer.
Ranking Factors
Primary Factors
Engagement Metrics
Engagement Metrics
- Comments Count: Each comment adds significant weight (2x multiplier)
- Reactions Count: Each reaction adds moderate weight (1x multiplier)
- Engagement Velocity: Rate of new interactions over time
Temporal Factors
Temporal Factors
- Creation Time (
createdAt
): Base timestamp for age calculation - Time Decay Function: Exponential decrease over time
- Recency Bonus: Newer posts receive initial boost
Content Updates
Content Updates
- Last Updated (
updatedAt
): Any content modification - Edit Timestamp (
editedAt
): Direct content edits - Update Boost: Temporary score increase after updates
Scoring Formula
The ranking system uses these post model properties:Mathematical Formula
Post Model Properties
How it Works
Score Calculation Process
- Initial Score: Based on post creation time and initial engagement
- Engagement Weighting: Comments weighted 2x more than reactions
- Time Decay Application: Score reduces over time to promote fresh content
- Update Boosts: Recent updates temporarily increase visibility
- Final Ranking: Posts sorted by calculated score in descending order
Real-time Updates
Post scores are recalculated for every query, ensuring rankings reflect the most current engagement data. This means pagination results may shift as users interact with content.
Configuration
Custom Ranking Logic
If you need to tailor the ranking algorithm to your specific requirements:1
Contact Support
Reach out to social.plus Support with your ranking requirements
2
Review Process
Our team will review your use case and discuss optimal ranking parameters
3
Implementation
Custom ranking logic will be applied to your network configuration
4
Testing
Validate the new ranking behavior in your development environment
Future releases will include ranking configuration options in the social.plus Console, allowing self-service updates without support tickets.
Limitations
Current implementation has the following constraints:
- Global Feed Delay: New posts appear immediately in User Feed but may have momentary delay in Global Feed due to ranking calculations
- Configuration Restrictions: Ranking formula updates require support team assistance
- Visibility Limits: Maximum 20 posts per user/community visible in global feed
- Data Migration: Only posts created with SDK version 5.10+ utilize custom ranking
Implementation
Ready to implement custom post ranking in your application? Check out our comprehensive guide:Query Global Feed Implementation
Learn how to integrate custom post ranking into your global feed queries with detailed code examples for all supported platforms.
UI Kit Integration
We also provide ready-to-use UI components for custom post ranking:iOS UI Kit
Pre-built iOS components with custom ranking support
Android UI Kit
Native Android components with ranking implementation
Best Practices
Performance
- Implement efficient pagination
- Cache ranking calculations when possible
- Monitor query performance metrics
- Use appropriate page sizes
User Experience
- Explain ranking to users transparently
- Provide chronological fallback option
- Handle ranking changes gracefully
- Consider user preferences