J
J
jehord2020-03-14 21:21:16
API
jehord, 2020-03-14 21:21:16

Photos.getPhotos - Why is the number of comments and shares 0?

I request data on user photos using

photos.getPhotos

Passing additional fields
  1. photo.discussion_summary
  2. photo.like_summary
  3. photo.reshare_summary

In response I get:
{#323
      +"type": "user"
      +"id": "894656105688"
      +"pic_base": "https://i.mycdn.me/image?id=894656105688&plc=API&aid=512000308605&tkn=*8WLViN1haWJzuyPEcKatyTTUMkY"
      +"text": ""
      +"text_tokens": []
      +"discussion_summary": {#324
        +"comments_count": 0
        +"discussion_id": "894656105688"
        +"discussion_type": "USER_PHOTO"
      }
      +"like_summary": {#325
        +"last_like_date_ms": 1584204166400
        +"count": 2
        +"reactions": array:1 [
          0 => {#326
            +"reaction": "like"
            +"count": 2
          }
        ]
        +"self": true
        +"self_reaction": "like"
        +"like_id": "4ktR_fwvZZomaVRlKbd1h6oHaHEPytnMFp2NKXPvNJM"
        +"like_possible": true
        +"unlike_possible": true
      }
      +"reshare_summary": {#327
        +"count": 0
        +"self": false
        +"self_owner": true
        +"reshare_like_id": "6AI1_KRSC9orD1v84uuDTw"
        +"reshare_possible": true
        +"reshare_available_for_chats": false
      }
      +"text_detected": false
    }


As you can see from the answer, the number of comments and reposts is zero, but in fact they are.

Tell me, is this an API bug or do I need to pass some additional fields so that this information is displayed?

The documentation also says that the entities property should be returned, but it is not there and for some reason it does not return to everything else text of the photo ...

Maybe someone encountered such problems?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question