Group News Feed

Group news feed centralizes publications from the current group. You can also put a message that will be intended to all members in the same way as you would on your news feed.

📘

Learn more on News Feed

Refer to the News Feed / Activity Stream documentation for more information

// Get group
Group group = session.getGroup().blockingGet(GROUP_ID);

// List News Feed from Group
Iterable<Feed> newsFeedIterable = group.blockingListNewsFeed(PAGE, SIZE);

// Post on the Group News Feed
FeedPost feedPost = new FeedPost.Builder()...build();
Feed postedFeed = group.blockingCreateFeedPost(feedPost);
// Get group
let group = try session.group.blockingGet(GROUP_ID)!

// List News Feed from Group
let newsFeedIterable = try group.blockingListNewsFeed(page: PAGE, size: SIZE)

// Post on the Group News Feed
let feedPost = try FeedPost.Builder()...build()
let postedFeed = try group.blockingCreateFeedPost(feedPost)
let group = await session.group.get(EVENT_ID);
let feedItems = await group.listNewsFeed();

let post = new FeedPost().setMessage("...");
let feedItem = await group.createFeedPost(post);
session.group.get(EVENT_ID).then((group)=> {
    group.listNewsFeed().then((feedItems)=> {
        let post = new FeedPost().setMessage("...");
        group.createFeedPost(post).then((feedItem)=> {
    
    });
  });
});