nerdexam
Microsoft

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.

Configure and manage SharePoint environment

Question

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?

Options

How the community answered

(31 responses)
  • A
    81% (25)
  • B
    3% (1)
  • C
    3% (1)
  • D
    13% (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.

Ahttp://csiteUri/_api/social.feedCorrect

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.

BSocialFeedManager(ClientRuntimeContext, ObjectPath);

SocialFeedManager(ClientRuntimeContext, ObjectPath) is an incorrect constructor signature - the managed client object model does not expose this constructor form.

Chttp://csiteUri/social.feed

The URL 'http://csiteUri/social.feed' is missing the required '_api' path segment, so the request will not route to the REST API handler.

DSPSocialFeedManager(UserProfile);

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

#SocialFeedManager#REST API#social feed#SharePoint app development

Community Discussion

No community discussion yet for this question.

Full 70-332 Practice