Answer the question
In order to leave comments, you need to log in
vk_api. How to find out the owner_id of an authorized user?
You need to set the owner_id parameter to the page id of the authorized user. How to do it?
print(vk.wall.post(owner_id = o_id, message = msg))
Answer the question
In order to leave comments, you need to log in
Not necessary. You can skip the parameter owner_id
and the post will be published on the page of the authorized user who owns the token. See documentation :
If you still want to know your id, you can call the method users.get()
without parameters: the data of the current user will be returned.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question