F
F
FlashDoc2018-12-30 08:16:10
In contact with
FlashDoc, 2018-12-30 08:16:10

VK.API method appWidgets.getImagesById how to designate an image in CoverList?

Hello, I'm trying to make a widget for my VK community.
The application and access rights were successfully issued to the application, but adding a widget of the CoverList type fails to return an error
rows[0].cover_id is not valid image id
"Regular" text widgets without pictures can be successfully added, but with a picture such an error
The request itself

return { 
    "title": "Титул", 
    "rows": [{ 
        "title": "Титул", 
        "button": "Кнопка", 
        "descr": "Описание", 
        "url": "", 
        "cover_id": "331011410_456240698", 
        "button_url": "" 
      }] 
};

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Z
zax2002, 2019-01-02
@zax2002

Add 'photo' before the id of the picture

M
maksam07, 2019-05-12
@maksam07

in the application of this widget, you can upload a file

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question