Source https://github.com/yahoo/yos-social-php5