jdp / twitterlibphp

An object-oriented PHP interface to the Twitter API
http://jdp.github.com/twitterlibphp
MIT License
155 stars 34 forks source link

Get Status Function not working #6

Open shorts17 opened 14 years ago

shorts17 commented 14 years ago

I'm trying to retrieve only one status from from my twitter feed but the function getStatus is not working. I've tried all the other functions (getUserTimeline, getMentions, etc) and have had no issues. As soon as I put in the getStatus function I receive this error...

Warning: Missing argument 1 for TwitterBase::getStatus(), called in C:\wamp\www\Website\includes\twitter_status.php on line 13 and defined in C:\wamp\www\Website\includes\twitter.lib.php on line 119

Notice: Undefined variable: id in C:\wamp\www\Website\includes\twitter.lib.php on line 120

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 61: parser error : Entity 'rsaquo' not defined in C:\wamp\www\Website\includes\twitter_status.php on line 15

Any help would be much appreciated.

clemherreman commented 13 years ago
Notice: Undefined variable: id in C:\wamp\www\Website\includes\twitter.lib.php on line 120

You have your answer here, you don't pass any id to the TwitterBase::getStatus(). Seems you're extracting it from an XML string, but the extraction isn't working.

Problem isn't in the library but in your code.