Esempio n. 1
0
        public async Task DeletePageAsync(int id)
        {
            var entity = _socialAccountService.FindAccount(id, SocialUserSource.Facebook);

            if (entity == null)
            {
                throw SocialExceptions.FacebookPageNotExists(id);
            }

            await _socialAccountService.DeleteAsync(entity);

            await _fbClient.UnSubscribeApp(entity.SocialUser.OriginalId, entity.Token);
        }