added social button api and various improvements