-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Page LikeByInformation - Page.GetLikedByInformationAsync() is not retreiving any information about page likes #1395
Comments
@NishkalankBezawada : not sure what the issue is here, I've tested https://github.com/pnp/pnpcore/blob/dev/src/sdk/PnP.Core.Test/SharePoint/PagesTests.cs#L2728-L2775 and this works fine. A page can be liked, the like can be retrieved and the page can be unliked. If I try below then // Save the page
await newPage.SaveAsync(pageName);
// Publish the page, required before it can be liked
newPage.Publish();
// Like the page
//newPage.Like();
// Get a list of users who liked this page
var pageLikeInformation = newPage.GetLikedByInformation(); |
Thanks @jansenbe for your prompt reply. I am trying to fetch a page LikedByInformation as below (which is having more than 3 likes),
This should return me the LikedInformation of that particular page, but
Or is |
@NishkalankBezawada : thanks, I can now reproduce the issue you're seeing. Let me work on a fix |
Thanks once again Jensen @jansenbe Regards, |
@NishkalankBezawada : I fixed this, please test again with the next nightly build. Will close this issue now, feel free to re-open in case the problem stays. |
Category
Describe the bug
I am trying to get the Page LikedByInformation as below,
var pageLikeInformation = clientSidePage.GetLikedByInformationAsync().GetAwaiter().GetResult();
But i get no results when using this.
I also used GetCommentsAsync() to get the comment collection which works fine.
var commentsCollection = clientSidePage.GetCommentsAsync().GetAwaiter().GetResult();
Below code is working and getting likedByInformation as well.
`
var pageNew = await pnpContext.Web.NewPageAsync();
`
Below code is not working,
`
var mypages = await pnpContext.Web.GetPagesAsync("TestingLikeInfo.aspx");
var pageABC = mypages.First();
`
Expected behavior
await pageABC.GetLikedByInformationAsync();
should get LikedByInformationLibrary
PnP.Core - 1.11.69-nightly
Thanks,
Nishkalank
The text was updated successfully, but these errors were encountered: