It seems there is a bug with this functionality, because we noticed that activities get posted only the first time, so when popup shows. After that, function returns as if activity was successfully posted, but checking activity stream shows that it really wasn't.
Any clues?