Hi,
I try to get all users who are following a site. After a bit of searching the internet I found this articleHow to get list of all users following a site.
So far so good. Perhaps, it is not the fastest solution (in case of 200.000 user) but OK. Problems occur using the following code in a WebPart (similar to the referenced article):
Foreach( userProfile )
….
SPSocialFollowingManager followingManager = new SPSocialFollowingManager(userProfile);
var fs = followingManager.GetFollowed(SPSocialActorTypes.All);
….
For the current user the result (fs) contains all types of SPSocialActor objects (including SPSocialActorType.Site and SPSocialActorType.Document). For all other user profiles the result has no objects of type SPSocialActorType.Site and SPSocialActorType.Document. In both cases I get the types SPSocialActorType.User and SPSocialActorType.Tag.
Could it be a permission issue?
Bye
Jens