示例#1
0
 private void StartSocialMediaPost()
 {
     try
     {
         var otm = _ss.Load().ToFacebookOauthTokenModel();
         AppendToLog("Beginning social media posts...");
         foreach (var audio in _audios)
         {
             AppendToLog("Posting " + audio.Title + "...");
             _sms.MakePost(otm, audio);
         }
         AppendToLog("Social media posts complete!");
     }
     catch (Exception ex)
     {
         Log.Error(ex.Message, ex);
     }
 }