errors handling + social apis