Simple port of the googleplus java impl