Get followed documents not working anymore
The endpoint _/api/social.following/my/followed(types=2) is returning sites (ActorType=2) instead of documents (ActorType=1). types=4 also returns sites only types=6 is returning sites and documents
According to documentation, types allows bitwise combinations where Users = 1, Documents = 2, Sites = 4, Tags = 8.
This was working fine until 2 weeks ago when something was changed. Has this change been properly communicated? Is the /_api/social.following endpoint still supported? I am aware of this announcement (https://developer.microsoft.com/en-us/office/blogs/upcoming-api-changes-to-sharepoint-social-feed-apis-and-following/) but it doesn't make sense to mess with this endpoint until there is an alternative (Microsoft Graph doesn't have a way to retrieve followed documents).
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 10ba3673-5f22-a56d-de66-838d114eb641
- Version Independent ID: 67b35cf8-ea9f-6ac3-2ba0-d936f8e76056
- Content: Follow documents, sites, and tags by using the REST service in SharePoint
- Content Source: docs/general-development/how-to-follow-documents-sites-and-tags-by-using-the-rest-service-in-sharepoint-2.md
- Product: sharepoint
- Technology: sharepoint-framework
- GitHub Login: @spdevdocs
- Microsoft Alias: spdevdocs
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
@Rafaelki After looking for alternatives myself yesterday I found that there is a Graph endpoint for following documents, albeit not sites as far as I can see. Maybe you can use /following for sites and graph for documents? I'm hoping to implement this myself.
https://docs.microsoft.com/en-us/graph/api/drive-list-following?view=graph-rest-1.0&tabs=http https://docs.microsoft.com/en-us/graph/api/driveitem-follow?view=graph-rest-1.0&tabs=http
Edit: Actually it seems they may both be out of beta: https://docs.microsoft.com/en-us/graph/api/sites-list-followed?view=graph-rest-1.0&tabs=http https://docs.microsoft.com/en-us/graph/api/site-follow?view=graph-rest-1.0&tabs=http
Thank you @siljemda for your quick answer. At this point, I am only interested in Followed documents and I need exactly the same documents that appear under "Docs I'm following" in https://[YOUR TENANT]-my.sharepoint.com/personal/[USER_LOGON]/Social/FollowedContent.aspx.
The endpoint /me/drive/following is not returning any results for me.
I have several clients that are using my megamenu (application customizer for modern sites, control in masterpage for classic sites) which display this information, and they are very upset that suddenly this information is not available.
@JeremyKelley ... possible change in REST API behavior?
Dupe of #5630
Closing this issue as a dupe. Please refer to our wiki for more details: Issue List Labels: status:duplicate