Skip to content

Defining a News Feed category

This article covers how to define a News Feed category for the Braze Web SDK.

Instances of the Braze News Feed can be configured to only receive cards from a certain “category”. This allows for the effective integration of multiple News Feed streams within a single application.

News Feed categories can be defined by providing the third allowedCategories parameter to toggleFeed:

1
braze.toggleFeed(undefined, undefined, [braze.Card.Category.NEWS]);

You can also populate a feed with a combination of categories like in the following example:

1
braze.toggleFeed(undefined, undefined, [braze.Card.Category.ANNOUNCEMENTS, braze.Card.Category.NEWS]);
HOW HELPFUL WAS THIS PAGE?
New Stuff!