Activity Feeds V3 is in closed alpha — do not use it in production (just yet).

Feed views

When to use feed views

Feed groups let you define what activities should be included in the feed and the ranking to sort these activities.

By default all feeds in the given group will have the same settings. However, you might want to experiment with different selectors and rankings. Feed views let you do that by overriding the group’s default settings.

$createResponse = $this->feedsV3Client->createFeedView(new GeneratedModels\CreateFeedViewRequest(
    id: $feedViewId,
));
$feedResponse1 = $this->testFeed->getOrCreateFeed(
    new GeneratedModels\GetOrCreateFeedRequest(userID: $this->testUserId)
);
$feedResponse2 = $this->testFeed2->getOrCreateFeed(
    new GeneratedModels\GetOrCreateFeedRequest(userID: $this->testUserId2)
);

With custom feed views you can control

  • Activity selectors
  • Ranking
  • Aggregation

Updating feed views

It’s possible to update any custom or built-in feed views.

$updateResponse = $this->feedsV3Client->updateFeedView('feedViewID', new GeneratedModels\UpdateFeedViewRequest(
    aggregation: new GeneratedModels\AggregationConfig('default')
    )
);

Deleting feed views

//        $this->feedsV3Client->deleteFeedView('viewID-123');
© Getstream.io, Inc. All Rights Reserved.