<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Twitter OAuth in F#</title><link>http://blogs.msdn.com/b/lukeh/archive/2010/09/05/twitter-oauth-in-f.aspx</link><description>I have a few F# demos which use the Twitter APIs as simple examples of accessing online data interactively and working with it in F#.&amp;#160;&amp;#160;&amp;#160; Recently, Twitter moved to require OAuth for accessing Twitter APIs on behalf of a user.&amp;#160; Below</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Twitter OAuth in F#</title><link>http://blogs.msdn.com/b/lukeh/archive/2010/09/05/twitter-oauth-in-f.aspx#10306821</link><pubDate>Fri, 18 May 2012 15:03:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10306821</guid><dc:creator>Mike</dc:creator><description>&lt;p&gt;OK, I found the bug. The addOAuthHeaderForUser needs to use the baseUri, not the entire uri. You can fix it by changing the first line of the method as shown below:&lt;/p&gt;
&lt;p&gt;let addAuthHeaderForUser (webRequest : WebRequest) token tokenSecret queryParams = &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;let url = webRequest.RequestUri.ToString().Split(&amp;#39;?&amp;#39;).[0]&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10306821" width="1" height="1"&gt;</description></item><item><title>re: Twitter OAuth in F#</title><link>http://blogs.msdn.com/b/lukeh/archive/2010/09/05/twitter-oauth-in-f.aspx#10305799</link><pubDate>Wed, 16 May 2012 12:25:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10305799</guid><dc:creator>Mike</dc:creator><description>&lt;p&gt;I&amp;#39;m seeing the same issue. Works when no query parameters are used. 401 errors when I use a query parameter.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10305799" width="1" height="1"&gt;</description></item><item><title>re: Twitter OAuth in F#</title><link>http://blogs.msdn.com/b/lukeh/archive/2010/09/05/twitter-oauth-in-f.aspx#10114253</link><pubDate>Tue, 11 Jan 2011 17:22:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10114253</guid><dc:creator>Fahad</dc:creator><description>&lt;p&gt;Luke, I checked your code, oAuth returns a 401 error, I had retrieved the token secret and the other details, it still throws some exception.&lt;/p&gt;
&lt;p&gt;-Fahad&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10114253" width="1" height="1"&gt;</description></item></channel></rss>