- Active Social Version: 1.9.1
- DotNetNuke Version: 5.6.1
Just found a UX issue with the twitter API Consumer Key. It seem when you cut and paste your key from twitter there is a often trailing space there. It "appears" correct to the administrator but when you click CP Save Settings the Consumer Key is saved with the trailing space but saves there is not indication of an issue with your credentials.
Then when a group or profile owner goes to add their twitter account and saves changes the edit view sort of blows up. It logs an error in the event log such as the one below but the user gets a generic module error.
Recommendations:Trim trailing spaces on the key values.
Perform an OAuth check on mouesout or on settings save and alert the Administrator that the credentials are not being accepted by twitter.
Event Log ErrorActive.Modules.Social.Twitter.TwitterAPIException: Exception of type 'Active.Modules.Social.Twitter.TwitterAPIException' was thrown. ---> System.Net.WebException: The remote server returned an error: (401) Unauthorized. at System.Net.HttpWebRequest.GetResponse() at Active.Modules.Social.Twitter.TwitterOAuth.WebRequest(Method RequestMethod, String Url, String PostData) --- End of inner exception stack trace --- at Active.Modules.Social.Twitter.TwitterOAuth.WebRequest(Method RequestMethod, String Url, String PostData) at Active.Modules.Social.Twitter.TwitterOAuth.OAuthWebRequest(Method RequestMethod, String url, String PostData) at Active.Modules.Social.Twitter.TwitterOAuth.GetAuthorizationLink() at Active.Modules.Social.Controls.Journal.ParseJournalTools(String template) at Active.Modules.Social.Controls.Journal.Page_Load(Object sender, EventArgs e)