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

Reactions

Overview

You can react to both activities and comments. It’s possible to configure any reaction types that best fit your app.

$response = $this->feedsV3Client->addReaction(
    $activityId,
    new GeneratedModels\AddReactionRequest(
        type: 'like',
        userID: $this->testUserId
    )
);

By default creating a reaction doesn’t create an activity.

When you read a feed the reactions are included. Here’s an example:

$response = $this->feedsV3Client->queryActivityReactions(
    $activityId,
    new GeneratedModels\QueryActivityReactionsRequest(
        limit: 10,
        filter: (object)['reaction_type' => 'like']
    )
);
© Getstream.io, Inc. All Rights Reserved.