Php api for integration with social networks