Comments and likes count updated after a long time when using graph
We want to use graph to collect the views, likes and comment for news. However, since a couple of days it takes a long time before for instance the likecount gets updated. The footer of the page immeadiately shows the correct number but using graph it takes hours. The graph call appears to be correct because it worked up unto a couple of days before.
The call we use is: https://graph.microsoft.com/v1.0/sites/{siteID}/lists/{listId}/items/{listItemId}
Category
- [ ] Question
- [ ] Typo
- [X] Bug
- [ ] Additional article idea
Expected or Desired Behavior
To see the updated number of likes and comments.
Observed Behavior
The number was updated the next day when using graph.
Steps to Reproduce
- Like or comment a news post
- Check the number of comments in the footer of the page
- Compare this number to the graph results: https://graph.microsoft.com/v1.0/sites/{siteID}/lists/{listId}/items/{listItemId}
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
The MSGraph is using the SharePoint v2 REST API to get SharePoint data. Can you check the underlying SharePoint REST API to see if it's returning the correct data to isolate where the issue is?
Ref: https://www.techmikael.com/2019/01/introducing-sharepoint-rest-api-v20.html
Thanks Andrew!
The graph call returns different results than the REST API. I liked a post and the REST API was almost immediately updated, and Graph is not updated yet.
OK... then that should be posted as a bug to the Graph team as it's not something the SharePoint side can address... agreed? If so, prob best to submit to them & close this issue...
Yes, you are absolutely right, this is a graph issue. I will try to contact the graph team.
Thanks for your help!
Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues