English 中文(简体)
有人在免费托管0fees.net上试用过Twitter OAuth吗?
原标题:Is there anyone tried Twitter OAuth on free hosting 0fees.net?
  • 时间:2010-10-17 15:09:47
  •  标签:
  • twitter

我是Twitter OAuth API的新手。

我正在尝试调整这样一段代码,并在0fees.net上注册了一个免费托管,并尝试测试一些代码并熟悉OAuth。

但当我尝试获取AuthencatieUrl时,我会收到以下错误:

Fatal error: Uncaught exception  EpiOAuthException  in /home/vol3/0fees.net/fees0_6530770/htdocs/Twi/EpiOAuth.php:313 Stack trace: #0 /home/vol3/0fees.net/fees0_6530770/htdocs/Twi/EpiOAuth.php(290): EpiOAuthException::raise(NULL, NULL) #1 /home/vol3/0fees.net/fees0_6530770/htdocs/Twi/EpiOAuth.php(33): EpiOAuthResponse->__get( oauth_token ) #2 /home/vol3/0fees.net/fees0_6530770/htdocs/Twi/sign-in.php(15): EpiOAuth->getAuthenticateUrl() #3 {main} thrown in /home/vol3/0fees.net/fees0_6530770/htdocs/Twi/EpiOAuth.php on line 313

我调试了一点,似乎令牌请求在免费主机上总是空的。。

但同样的代码也适用于我的localhost,令牌被正确检索,来自Twitter的AuthencationURL也可以……但我无法将localhost URL作为回调。。

你们知道这个问题吗?

Thanks & Regards. Larry.

最佳回答

我在本地主机上也遇到了同样的问题。在URL上将其更改为127.0.0.1为我解决了这个问题。然而,我知道它不能完全回答你的问题,但任何遇到类似问题的人,知道这个花絮可能会有所帮助。最好的

问题回答

暂无回答




相关问题
Understanding Twitter API s "Cursor" parameter

I don t really get how to use the Curesor parameter in Twitter s API, for an exmaple - here. Am I supposed to make a new API call for each 100 followers? I d love it if someone could provide a PHP ...

Cannot get Twitter-OAuth-iPhone to work

demo works as expected, no problems. But now I m trying to integrate it into my project. I use no xib-s, code only: OAuthTwitterDemoViewController *vc = [[OAuthTwitterDemoViewController alloc] init]; ...

Creating a constantly updating feed like Twitter

I d like to have something in my app that is just like Twitter but not Twitter. Basically it will be a place people can submit messages and do not need an account. They only way they can submit is ...

RegEx: Link Twitter-Name Mentions to Twitter in HTML

I want to do THIS, just a little bit more complicated: Lets say, I have an HTML input: <a href="http://www.example.com" title="Bla @test blubb">Don t break!</a> Some Twitter Users: @...

twitter status update using tweetsharp oauth preview 17

I am trying to update the status using tweetsharp oauth preview 17. Please let me know how ?. I tried this code var msg = FluentTwitter.CreateRequest() .AuthenticateWith(_consumerKey, ...

How to test the twitter API locally?

I m trying to write a web application that would use Twitter via OAuth. I run my local server as localhost , so I need the callback URL to be something like http://localhost/something/twitter.do ...

Get follower count on Twitter API search results

What I m trying to do is pull some search results, and sort them by users. Right now I m using $to->OAuthRequest( http://search.twitter.com/search.json , array( q => search-term ), GET ); to ...

热门标签