multi social api class samle for php