Steps
  1. Open Visual Studio in your system.
  2. Select Console Applciation template and give as name "GetallList".
  3. Add a Microsoft.Cleint Assembly refrence file in right side refrence tab in visual studio.
  4. Replace Program.cs with the source code below.
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using Microsoft.SharePoint.Client;
  7. namespace GetallList
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. // ClientContext - Get the context for the SharePoint Site
  14. ClientContext clientContext = new ClientContext("http://gauti.sharepoint.com/sites/SP");
  15. /Pass the credentials for whom we need to get the count of followed
  16. documents
  17. //By default It will take current user who runs this application - Here it
  18. will take Administrator because the application is running with that account
  19. clientContext.Credentials = new NetworkCredential("Gowtham", "paswword5","SP2013");
  20. // Get the SocialFollowingManager instance
  21. // Provides methods for managing a user's list of followed actors (users,documents, sites, and tags)
  22. SocialFollowingManager followingManager = new SocialFollowingManager(clientContext);
  23. // Get the count of followed documents
  24. ClientResult<int> followingCount =followingManager.GetFollowedCount(SocialActorTypes.Documents);
  25. // Execute the query to the server
  26. clientContext.ExecuteQuery();
  27. // Display the count of followed documents
  28. Console.WriteLine("Count of followed documents: " + followingCount.Value);
  29. Console.ReadLine();
  30. }
  31. }
    }
Output

Hit F5 and Check the Output.
hope you have enjoyed this.!!:-)