How to get comments from SharePoint posts

Vish Pothaganti 41 Reputation points
2020-12-17T20:55:20.6+00:00

Social feed REST API (https://learn.microsoft.com/en-us/sharepoint/dev/general-development/social-feed-rest-api-reference-for-sharepoint) lists out how we can use the API to get information like likes, mentions from different posts on SharePoint.

It does not mention anything regarding how to get comments made on any social posts on SharePoint.

Is there any different API to fetch comments or does the documentation need any updates?

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,958 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Amos Wu-MSFT 4,051 Reputation points
    2020-12-18T06:45:52.863+00:00

    You could try to use this web service:

    /_vti_bin/SocialDataService.asmx  
    

    49374-image.png
    sp.service also has this method:
    https://sympmarc.github.io/SPServices/core/web-services/SocialDataService.html


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.