<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Twitpic OAuth &#8211; I&#8217;m Stuck</title> <atom:link href="http://shkspr.mobi/blog/index.php/2010/05/twitpic-oauth-im-stuck/feed/" rel="self" type="application/rss+xml" /><link>http://shkspr.mobi/blog/index.php/2010/05/twitpic-oauth-im-stuck/</link> <description>Mobiles, Shakespeare, Politics, Usability.</description> <lastBuildDate>Tue, 07 Feb 2012 17:59:37 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: toshi</title><link>http://shkspr.mobi/blog/index.php/2010/05/twitpic-oauth-im-stuck/#comment-7491</link> <dc:creator>toshi</dc:creator> <pubDate>Tue, 01 Jun 2010 18:33:02 +0000</pubDate> <guid
isPermaLink="false">http://shkspr.mobi/blog/?p=2073#comment-7491</guid> <description>thank you very much!
my mistake is OAuth libraries, that is kind of wrong.
$schema was always designated &#039;http&#039;. in function get_normalized_http_url().
changing it to Abraham’s OAuth libraries, getting things down!</description> <content:encoded><![CDATA[<p>thank you very much!<br
/> my mistake is OAuth libraries, that is kind of wrong.<br
/> $schema was always designated &#8216;http&#8217;. in function get_normalized_http_url().<br
/> changing it to Abraham’s OAuth libraries, getting things down!</p> ]]></content:encoded> </item> <item><title>By: Terence Eden</title><link>http://shkspr.mobi/blog/index.php/2010/05/twitpic-oauth-im-stuck/#comment-7460</link> <dc:creator>Terence Eden</dc:creator> <pubDate>Mon, 31 May 2010 17:24:02 +0000</pubDate> <guid
isPermaLink="false">http://shkspr.mobi/blog/?p=2073#comment-7460</guid> <description>Full details are at http://shkspr.mobi/blog/?p=2084</description> <content:encoded><![CDATA[<p>Full details are at <a
href="http://shkspr.mobi/blog/?p=2084" rel="nofollow">http://shkspr.mobi/blog/?p=2084</a></p> ]]></content:encoded> </item> <item><title>By: HOWTO: Twitpic and OAuth &#8211; Terence Eden has a Blog</title><link>http://shkspr.mobi/blog/index.php/2010/05/twitpic-oauth-im-stuck/#comment-7459</link> <dc:creator>HOWTO: Twitpic and OAuth &#8211; Terence Eden has a Blog</dc:creator> <pubDate>Mon, 31 May 2010 17:07:34 +0000</pubDate> <guid
isPermaLink="false">http://shkspr.mobi/blog/?p=2073#comment-7459</guid> <description>[...] am no longer confused! Here is a quick tutorial in how to post images to Twitpic and Twitter when using OAuth. I&#8217;m [...]</description> <content:encoded><![CDATA[<p>[...] am no longer confused! Here is a quick tutorial in how to post images to Twitpic and Twitter when using OAuth. I&#8217;m [...]</p> ]]></content:encoded> </item> <item><title>By: toshi</title><link>http://shkspr.mobi/blog/index.php/2010/05/twitpic-oauth-im-stuck/#comment-7455</link> <dc:creator>toshi</dc:creator> <pubDate>Mon, 31 May 2010 09:29:52 +0000</pubDate> <guid
isPermaLink="false">http://shkspr.mobi/blog/?p=2073#comment-7455</guid> <description>At last, Did you work well? if so, tell me more specific?
i got 401 “Could not authenticate you (header rejected by twitter).” now.could you paste some code on this board?</description> <content:encoded><![CDATA[<p>At last, Did you work well? if so, tell me more specific?<br
/> i got 401 “Could not authenticate you (header rejected by twitter).” now.</p><p>could you paste some code on this board?</p> ]]></content:encoded> </item> <item><title>By: Bruno Barbieri</title><link>http://shkspr.mobi/blog/index.php/2010/05/twitpic-oauth-im-stuck/#comment-7400</link> <dc:creator>Bruno Barbieri</dc:creator> <pubDate>Fri, 28 May 2010 23:42:37 +0000</pubDate> <guid
isPermaLink="false">http://shkspr.mobi/blog/?p=2073#comment-7400</guid> <description>Forget my comment. Got it workin&#039; too. Thank you anyway.</description> <content:encoded><![CDATA[<p>Forget my comment. Got it workin&#8217; too. Thank you anyway.</p> ]]></content:encoded> </item> <item><title>By: Terence Eden</title><link>http://shkspr.mobi/blog/index.php/2010/05/twitpic-oauth-im-stuck/#comment-7347</link> <dc:creator>Terence Eden</dc:creator> <pubDate>Wed, 26 May 2010 15:46:58 +0000</pubDate> <guid
isPermaLink="false">http://shkspr.mobi/blog/?p=2073#comment-7347</guid> <description>Perfect.  Got it working. Thanks for all your help.</description> <content:encoded><![CDATA[<p>Perfect.  Got it working. Thanks for all your help.</p> ]]></content:encoded> </item> <item><title>By: Stephen Corona</title><link>http://shkspr.mobi/blog/index.php/2010/05/twitpic-oauth-im-stuck/#comment-7272</link> <dc:creator>Stephen Corona</dc:creator> <pubDate>Mon, 24 May 2010 17:10:40 +0000</pubDate> <guid
isPermaLink="false">http://shkspr.mobi/blog/?p=2073#comment-7272</guid> <description>Hi Terence,Unfortunately, with the way OAuth Echo works, we can only access the URL that you sign for (in this case, https://api.twitter.com/1/account/verify_credentials.json). This means, that we are unable to post a tweet on your behalf to twitter, because the oauth header you are signing is not for statuses/update.Twitter is working on a solution for us, but, for the time being, you&#039;ll have to post the tweet yourself. When you upload an image, the twitpic url is included in the JSON or XML response, so you can pull the URL from there to insert into your tweet.</description> <content:encoded><![CDATA[<p>Hi Terence,</p><p>Unfortunately, with the way OAuth Echo works, we can only access the URL that you sign for (in this case, <a
href="https://api.twitter.com/1/account/verify_credentials.json" rel="nofollow">https://api.twitter.com/1/account/verify_credentials.json</a>). This means, that we are unable to post a tweet on your behalf to twitter, because the oauth header you are signing is not for statuses/update.</p><p>Twitter is working on a solution for us, but, for the time being, you&#8217;ll have to post the tweet yourself. When you upload an image, the twitpic url is included in the JSON or XML response, so you can pull the URL from there to insert into your tweet.</p> ]]></content:encoded> </item> <item><title>By: Terence Eden</title><link>http://shkspr.mobi/blog/index.php/2010/05/twitpic-oauth-im-stuck/#comment-7267</link> <dc:creator>Terence Eden</dc:creator> <pubDate>Mon, 24 May 2010 16:09:02 +0000</pubDate> <guid
isPermaLink="false">http://shkspr.mobi/blog/?p=2073#comment-7267</guid> <description>You beauty! Nice one. Can&#039;t believe I missed that.All seems to work - the image appears on Twitpic, but not on Twitter.  Is there a specific parameter I need to pass?ThanksT</description> <content:encoded><![CDATA[<p>You beauty! Nice one. Can&#8217;t believe I missed that.</p><p>All seems to work &#8211; the image appears on Twitpic, but not on Twitter.  Is there a specific parameter I need to pass?</p><p>Thanks</p><p>T</p> ]]></content:encoded> </item> <item><title>By: Stephen Corona</title><link>http://shkspr.mobi/blog/index.php/2010/05/twitpic-oauth-im-stuck/#comment-7262</link> <dc:creator>Stephen Corona</dc:creator> <pubDate>Mon, 24 May 2010 13:47:24 +0000</pubDate> <guid
isPermaLink="false">http://shkspr.mobi/blog/?p=2073#comment-7262</guid> <description>Hi Terence,I believe the problem is that you are signing the OAuth request using verify_credentials.xml ($fakeurl = &#039;https://twitter.com/account/verify_credentials.xml). We need the request to be signed for https://api.twitter.com/1/account/verify_credentials.json. Try changing the value of $fakeurl and it should work.</description> <content:encoded><![CDATA[<p>Hi Terence,</p><p>I believe the problem is that you are signing the OAuth request using verify_credentials.xml ($fakeurl = &#8216;<a
href="https://twitter.com/account/verify_credentials.xml" rel="nofollow">https://twitter.com/account/verify_credentials.xml</a>). We need the request to be signed for <a
href="https://api.twitter.com/1/account/verify_credentials.json" rel="nofollow">https://api.twitter.com/1/account/verify_credentials.json</a>. Try changing the value of $fakeurl and it should work.</p> ]]></content:encoded> </item> <item><title>By: Terence Eden</title><link>http://shkspr.mobi/blog/index.php/2010/05/twitpic-oauth-im-stuck/#comment-7259</link> <dc:creator>Terence Eden</dc:creator> <pubDate>Mon, 24 May 2010 11:28:22 +0000</pubDate> <guid
isPermaLink="false">http://shkspr.mobi/blog/?p=2073#comment-7259</guid> <description>I&#039;ve updated the blogpost.  Sending through the headers in what I think is the correct format.  Now I get 401 “Could not authenticate you (header rejected by twitter).”</description> <content:encoded><![CDATA[<p>I&#8217;ve updated the blogpost.  Sending through the headers in what I think is the correct format.  Now I get 401 “Could not authenticate you (header rejected by twitter).”</p> ]]></content:encoded> </item> <item><title>By: Terence Eden</title><link>http://shkspr.mobi/blog/index.php/2010/05/twitpic-oauth-im-stuck/#comment-7258</link> <dc:creator>Terence Eden</dc:creator> <pubDate>Mon, 24 May 2010 11:27:29 +0000</pubDate> <guid
isPermaLink="false">http://shkspr.mobi/blog/?p=2073#comment-7258</guid> <description>Nah, the post works. If it didn&#039;t, Twitpic wouldn&#039;t forward the headers on to Twitter.</description> <content:encoded><![CDATA[<p>Nah, the post works. If it didn&#8217;t, Twitpic wouldn&#8217;t forward the headers on to Twitter.</p> ]]></content:encoded> </item> <item><title>By: rik</title><link>http://shkspr.mobi/blog/index.php/2010/05/twitpic-oauth-im-stuck/#comment-7255</link> <dc:creator>rik</dc:creator> <pubDate>Mon, 24 May 2010 09:18:28 +0000</pubDate> <guid
isPermaLink="false">http://shkspr.mobi/blog/?p=2073#comment-7255</guid> <description>I&#039;d be thinking the POST thing.</description> <content:encoded><![CDATA[<p>I&#8217;d be thinking the POST thing.</p> ]]></content:encoded> </item> <item><title>By: Terence Eden</title><link>http://shkspr.mobi/blog/index.php/2010/05/twitpic-oauth-im-stuck/#comment-7254</link> <dc:creator>Terence Eden</dc:creator> <pubDate>Mon, 24 May 2010 09:13:02 +0000</pubDate> <guid
isPermaLink="false">http://shkspr.mobi/blog/?p=2073#comment-7254</guid> <description>Ah! Indeed you are wise.
The correct code should be
&lt;code&gt;$header = array(&#039;X-Auth-Service-Provider: https://api.twitter.com/1/account/verify_credentials.json&#039;,
&#039;X-Verify-Credentials-Authorization: OAuth realm=&quot;http://api.twitter.com/&quot;&#039;);&lt;/code&gt;Now at least the error I get back is from Twitter!</description> <content:encoded><![CDATA[<p>Ah! Indeed you are wise.<br
/> The correct code should be<br
/> <code>$header = array('X-Auth-Service-Provider: <a
href="https://api.twitter.com/1/account/verify_credentials.json&#039;" rel="nofollow">https://api.twitter.com/1/account/verify_credentials.json&#039;</a>,<br
/> 'X-Verify-Credentials-Authorization: OAuth realm="http://api.twitter.com/"');</code></p><p>Now at least the error I get back is from Twitter!</p> ]]></content:encoded> </item> <item><title>By: Tom Parker</title><link>http://shkspr.mobi/blog/index.php/2010/05/twitpic-oauth-im-stuck/#comment-7239</link> <dc:creator>Tom Parker</dc:creator> <pubDate>Sun, 23 May 2010 21:59:08 +0000</pubDate> <guid
isPermaLink="false">http://shkspr.mobi/blog/?p=2073#comment-7239</guid> <description>Hmm. The only immediately obvious item (yet probably unlikely as I think/hope PHP would whinge about this) is that your replacement headers have a quote inside them around the api.twitter.com bit which hasn&#039;t been escaped like the original one was. Also, according to their example, they *all* need to have their parameters in quotes.The error you&#039;re getting is probably better translated to &quot;our parser barfed, so let&#039;s assume you didn&#039;t give us *everything* we wanted and ergo panic&quot;. This is an insanely annoying and common problem when trying to build this sort of thing, and unfortunately there&#039;s a trade-off between nice error messages v.s. making it easier to find the flaws in stuff for dark-hat folks, and they tend to err on the paranoid side.(Also, twitpic is being a bit odd with OAuth, as the spec recommends the use of HTTP POST variables for sending all this stuff...)</description> <content:encoded><![CDATA[<p>Hmm. The only immediately obvious item (yet probably unlikely as I think/hope PHP would whinge about this) is that your replacement headers have a quote inside them around the api.twitter.com bit which hasn&#8217;t been escaped like the original one was. Also, according to their example, they *all* need to have their parameters in quotes.</p><p>The error you&#8217;re getting is probably better translated to &#8220;our parser barfed, so let&#8217;s assume you didn&#8217;t give us *everything* we wanted and ergo panic&#8221;. This is an insanely annoying and common problem when trying to build this sort of thing, and unfortunately there&#8217;s a trade-off between nice error messages v.s. making it easier to find the flaws in stuff for dark-hat folks, and they tend to err on the paranoid side.</p><p>(Also, twitpic is being a bit odd with OAuth, as the spec recommends the use of HTTP POST variables for sending all this stuff&#8230;)</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (Requested URI is rejected)

Served from: www.shkspr.mobi @ 2012-02-09 01:59:12 -->
