refactor the postToWall function

Weijian and Yanyan