Show the users avatar by page

Strange heading I know but I didnt know how to word it, I am looking for a way to show the avatar of any logged in user currently viewing the same page or reading the same post.

A little like how livefire plugin shows the avatars