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.