Defining News Feed categories
This article covers how to define a News Feed category for the Braze Web SDK.
important:
News Feed is being deprecated. We recommend migrating to our Content Cards messaging channel instead—it’s more flexible, customizable, and reliable. To get started, check out Migrating from News Feed.
Defining a category
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]);
New Stuff!