Defining a News Feed category
This article covers how to define a News Feed category for the Braze Web SDK.
note:
News Feed is being deprecated. Braze recommends that customers who use our News Feed tool move over to our Content Cards messaging channel—it’s more flexible, customizable, and reliable. Check out the migration guide for more.
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]);