ultranerds has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I'm trying to get Net::Twitter to work in my admin backend. Basically (with permission) it will post on users twitter feeds when they add a listing. I have this:
<p><font face='Tahoma,Arial,Helvetica' size=2>A fatal error has occured:</font></p><blockquote><pre></pre></blockquote><p><font face='Tahoma,Arial,Helvetica' size=2>Please enable debugging in setup for more details.</font></p>
Which is of no use what-so-ever :( I know the key/secrets are ok, as I'm using those to login with. Anyone got any ideas? I've googled on the subject - but didn't come up with anything.
TIA
Andy
I'm trying to get Net::Twitter to work in my admin backend. Basically (with permission) it will post on users twitter feeds when they add a listing. I have this:
When I run it, I get:use Net::Twitter; my $nt = Net::Twitter->new( traits => [qw/OAuth API::REST/], consumer_key => 'aaaaa', consumer_secret => 'xxxxx', access_token => $user->{tw_token}, access_token_secret => $user->{tw_token_secret}, ); my $result; eval { $result = $nt->update('Hello, world!'); }; if ( my $err = $@ ) { die $@; warn "HTTP Response Code: ", $err->code, "\n", "HTTP Message......: ", $err->message, "\n", "Twitter error.....: ", $err->error, "\n"; }
<p><font face='Tahoma,Arial,Helvetica' size=2>A fatal error has occured:</font></p><blockquote><pre></pre></blockquote><p><font face='Tahoma,Arial,Helvetica' size=2>Please enable debugging in setup for more details.</font></p>
Which is of no use what-so-ever :( I know the key/secrets are ok, as I'm using those to login with. Anyone got any ideas? I've googled on the subject - but didn't come up with anything.
TIA
Andy
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Net::Twitter - fatal , but no error?
by tobyink (Canon) on Feb 08, 2013 at 13:22 UTC | |
by ultranerds (Hermit) on Feb 08, 2013 at 13:32 UTC | |
by tobyink (Canon) on Feb 08, 2013 at 13:44 UTC | |
by ultranerds (Hermit) on Feb 08, 2013 at 13:52 UTC | |
by tobyink (Canon) on Feb 08, 2013 at 14:14 UTC | |
|
Back to
Seekers of Perl Wisdom