70-332 · Question #87
You develop a SharePoint app that reads social data from your company's SharePoint site. You need to access the SocialFeedManager object. Which object or URL should you use?
The correct answer is A. http://csiteUri/_api/social.feed. The SharePoint REST API exposes social feed data through the standard _api routing prefix, requiring the correct endpoint path to access SocialFeedManager functionality.
Question
Options
- Ahttp://csiteUri/_api/social.feed
- BSocialFeedManager(ClientRuntimeContext, ObjectPath);
- Chttp://csiteUri/social.feed
- DSPSocialFeedManager(UserProfile);
How the community answered
(31 responses)- A81% (25)
- B3% (1)
- C3% (1)
- D13% (4)
Why each option
The SharePoint REST API exposes social feed data through the standard _api routing prefix, requiring the correct endpoint path to access SocialFeedManager functionality.
The correct REST endpoint for accessing social feed data in SharePoint is 'http://<siteUri>/_api/social.feed', which follows the standard SharePoint REST API URL pattern. This endpoint maps to the SocialFeedManager object server-side and returns social feed data in JSON or Atom format.
SocialFeedManager(ClientRuntimeContext, ObjectPath) is an incorrect constructor signature - the managed client object model does not expose this constructor form.
The URL 'http://csiteUri/social.feed' is missing the required '_api' path segment, so the request will not route to the REST API handler.
SPSocialFeedManager is not a valid class in the SharePoint API - the correct server-side class is SPSocialFeedManager only in legacy SSOM; the REST equivalent is accessed via the _api endpoint.
Concept tested: SharePoint REST API social feed endpoint access
Source: https://learn.microsoft.com/en-us/sharepoint/dev/general-development/social-feed-rest-api-reference-for-sharepoint
Topics
Community Discussion
No community discussion yet for this question.