internal void SaveFacebookLink(PostFacebookLinkCommand command, Guid id)
 {
     FacebookProfilesContextFactory contextFactory = new FacebookProfilesContextFactory();
     AnonoMightEntities context = contextFactory.GetContext(command.SiteName);
     context.FacebookProfiles.Add(new FacebookProfile { Id = id, Link = command.Url, TimeStamp = DateTime.Now, Reports = 0 });
     context.SaveChanges();
 }
        public void PostFacebookLink(PostFacebookLinkCommand command)
        {
            Guid id = Guid.NewGuid();
            var info = facebookInfo.GetFacebookProfileInfo(command.Url);
            _dataPersistor.SaveFacebookLink(info, command.SiteName, id);

            Clients.Group(command.SiteName).postFacebookLinkReceived(new PostedFacebookLinkEvent { Id = id, Name = info.Name, ProfilePicture = info.FacebookImage, Timestamp = DateTime.Now });
        }