NewsFeed questions

Vote:
 

Could anyone explain some fundamentals about the NewsFeed module?

Why is it that when I add a story using the AddStoryToActorFeed method it's added correctly as a row in the tblEPiServerCommunityNewsFeedStory table, but after a while that row is duplicated with another ID? I get duplicate entries in my feed listings. I would guess it has something to do with the aggregation features, can I turn those off?

Generally, what is exactly the MiniFeed and the NewsFeed and what correlations do they have?

#31306
Jul 20, 2009 13:57
Vote:
 

The mini feed is the list of actions for a particular user.

The news feed is the aggregated list of what the friends (contacts) of a particular user has been doing.

 

If you are getting duplicates in your listings, I assume that you are not using the regular API calls for getting one of these two kinds of feeds...?

What is it that you actually want to be listed?

#31389
Jul 27, 2009 9:17
Vote:
 

Actually I am using the API call GetTargetFeed().

What I want is to get a feed over what is done to the user's stuff, hence I use the user as the target and try to get a target feed. But then I get the stories quadrupled or worse.

#31655
Aug 05, 2009 15:06
Vote:
 
We'll be looking into this for an upcoming hotfix for 3.2 SP1.
#32141
Aug 24, 2009 13:50
Vote:
 

Hi!

I need to use GetTargetFeed() in same way as Tomas.
Is there a workaround for this or a possible hotfix that I can apply right now?

How did you solve it Tomas?

Regards,
Anton 

#32217
Aug 26, 2009 10:53
Vote:
 

Hi Anton!

What we did was to add an attibrute - "IsOriginal" - to the NewsFeedStory when creating it, and setting the value to "true". Then when getting the target feed we filter out only the NewsFeedStorys that have the attribute "IsOriginal" set to true (we used LINQ but you also do it by simply looping the returned stories).

This works since when the NewsFeed functionality makes all the copies of the NewsFeedStories it doesn't copy any attributes from the original story. So only the first original NewsFeedStory will have the "IsOriginal" attribute set.

One other thing to keep in mind when using the target feed functionality is that it has a major bug in it: If you for instance first set a user with the ID 123 as a target on a story and then later set a club with the same ID (123) as target on another story the target feed will think of them as the same target. So when getting the target feed for club 123 you will also get the stories where the user 123 is the target! This is because the buggy functionality completly ignores the type of the target. We have reported this bug to EPiServer and it should be fixed in the next hot fix.

We made a work arround for this bug by having different sets of NewsFeedActions for users and clubs, e.g. User_AddedImage and Club_AddedImage. Then we filtered the target feed request to only inlcude the actions for the type of target we needed.

Hope this helps you!

Regards, Tomas 

 

 

#32221
Aug 26, 2009 11:13
Vote:
 

Hi Tomas!

Thanks a lot! This will help! Nice workarounds Smile
EPiServer really need to fix this to next SP.

Regards, Anton 

#32222
Edited, Aug 26, 2009 11:21
Vote:
 

Quick update: Hotfix 1 for Community 3.2 SP1 is now available, which should resolve this bug and others.

 

 

#32281
Aug 28, 2009 17:11
Vote:
 
Nice work EPi-guys!
#32300
Aug 31, 2009 9:22
Vote:
 
Great! Thx
#32301
Aug 31, 2009 9:25
This thread is locked and should be used for reference only. Please use the Legacy add-ons forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.