weixin_39968436
weixin_39968436
2021-01-09 02:07

Empty comments

Sorry for this simple question but i really cannot find any information how to get list of comments from media object...? I can see comments count but not text of comments.

该提问来源于开源项目:dilame/instagram-private-api

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

20条回答

  • weixin_39968436 weixin_39968436 4月前

    ok, i got it, but where i can read docs or example: how to make correct request without preview_comments point?

    点赞 评论 复制链接分享
  • weixin_39796868 weixin_39796868 4月前

    As I told you before you need to use feed class, https://github.com/huttarichard/instagram-private-api/blob/master/client/v1/feeds/media-comments.js

    点赞 评论 复制链接分享
  • weixin_39796868 weixin_39796868 4月前

    img_1878 img_1877

    点赞 评论 复制链接分享
  • weixin_39796868 weixin_39796868 4月前

    Do you see one got previews which is excatly one comment second has more comments but nothing in preview...

    点赞 评论 复制链接分享
  • weixin_39968436 weixin_39968436 4月前

    1315004044993830197_247064461

    点赞 评论 复制链接分享
  • weixin_39968436 weixin_39968436 4月前

    source: https://www.instagram.com/p/BI_1TY0Dx01

    点赞 评论 复制链接分享
  • weixin_39796868 weixin_39796868 4月前

    I figure it out. Problem is that instagram made change. Field comments are not provided anymore, preview_comments is replacement. If you want to get all comments you need to use feed. I just fix issue and publish new version. Run npm update

    点赞 评论 复制链接分享
  • weixin_39968436 weixin_39968436 4月前

    thank you)

    点赞 评论 复制链接分享
  • weixin_39968436 weixin_39968436 4月前

    sorry, but can you also check this bug in getByUrl method? I run npm update and comments still empty from getByUrl. I also completely reinstall your module. There are no changes.

    点赞 评论 复制链接分享
  • weixin_39968436 weixin_39968436 4月前

    I think maybe trouble in recognize smiles or other incorrect symbols. On the one photo comments are empty but on another photo - they exist. In reality both of photos have a comments.

    点赞 评论 复制链接分享
  • weixin_39796868 weixin_39796868 4月前

    but those are previews, are you sure that both has preview? send me codes + ids

    点赞 评论 复制链接分享
  • weixin_39968436 weixin_39968436 4月前

    1294440867599487201_247064461 - this id return comments 1315004044993830197_247064461 - this id return empty comments all photo are from my open profile and have comments

    点赞 评论 复制链接分享
  • weixin_39796868 weixin_39796868 4月前

    codes if you can too please

    点赞 评论 复制链接分享
  • weixin_39968436 weixin_39968436 4月前

    sure, 1) BH2xxxgBBDh 2) BI_1TY0Dx01

    点赞 评论 复制链接分享
  • weixin_39796868 weixin_39796868 4月前

    You are missing the point, preview_comments is replacement so you got only previews of comments....

    点赞 评论 复制链接分享
  • weixin_39968436 weixin_39968436 4月前

    1 2

    点赞 评论 复制链接分享
  • weixin_39968436 weixin_39968436 4月前

    so, why comments is empty?

    点赞 评论 复制链接分享
  • weixin_39796868 weixin_39796868 4月前

    if you can send me media ID

    点赞 评论 复制链接分享
  • weixin_39796868 weixin_39796868 4月前

    I will take a look

    点赞 评论 复制链接分享
  • weixin_39796868 weixin_39796868 4月前

    get medium and object returned from promise will have property comments https://github.com/huttarichard/instagram-private-api/blob/master/client/v1/media.js#L70

    点赞 评论 复制链接分享

相关推荐