W
W
wirflve2021-09-14 22:48:32
Python
wirflve, 2021-09-14 22:48:32

What id do I need to get the id from wall.get in order to like a post with likes.add?

What id do I need with the wall.get method in order to use it for the likes.add method ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Bone, 2021-09-14
@wirflve

In wall.get you get an array of posts (in the items field) . For likes.add, you need to select the desired post from those that were obtained using wall.get, and then type=post, owner_id = (owner_id field from the selected post), id of the selected post.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question