We have comments and likes data of share point modern page in .csv/json format. We want this data to be migrated to the share point communication site.
We are able to migrate the site pages but unable to migrate likes and comments associated with the pages. We can post comment, like comment, like pages using the rest api or pnp using context of user for which code is running but unable to do on behalf of another user.
So, can anyone provide us guidance or a way to migrate the comments/likes of the Sharepoint modern pages ?