Skip Menu |

This queue is for tickets about the WWW-Facebook-API CPAN distribution.

Report information
The Basics
Id: 43953
Status: resolved
Priority: 0/
Queue: WWW-Facebook-API

People
Owner: Nobody in particular
Requestors: ClintJCL [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: just so you know
Date: Sun, 8 Mar 2009 20:10:14 -0400
To: bug-www-facebook-api [...] rt.cpan.org
From: __Clint__ <clintjcl [...] gmail.com>
the sample program in your API doc: http://backpan.perl.org/authors/id/U/UN/UNOBE/WWW-Facebook-API-v0.3.1.readme doesn't even work.. it says: Enter your public API key: XXXXXXXXXXXXXXXXXXX Enter your API secret: XXXXXXXXXXXXXXXXXXX Enter your e-mail address: clintjcl@gmail.com Enter your password: XXXXXXXXXXXXXXXXXXX Error during REST auth.createToken call: params = api_key:XXXXXXXXXXXXXXXXXXX call_id:1236557190.38875 format:JSON method:facebook.auth.createToken v:1.0 response = {"error_code":101,"error_msg":"Invalid API key","request_args":[{"key":"api_key","value":"XXXXXXXXXXXXXXXXXXX\r"},{"key ":"call_id","value":"1236557190.38875"},{"key":"format","value":"JSON"},{"key":"method","value":"facebook.auth.createToken"},{"key": "v","value":"1.0"},{"key":"sig","value":"20ea41af9f8d1800134d68c4e122cd99"}]} WWW::Facebook::API::call('WWW::Facebook::API=HASH(0x207dae0)', 'auth.createToken') called at C:/Perl/site/lib/WWW/Facebook/A PI/Auth.pm line 26 WWW::Facebook::API::Auth::create_token('WWW::Facebook::API::Auth=HASH(0x20fa728)') called at C:/Perl/site/lib/WWW/Facebook/A PI/Auth.pm line 78 WWW::Facebook::API::Auth::login('WWW::Facebook::API::Auth=HASH(0x20fa728)', 'email', 'clintjcl@gmail.com\x{d}', 'pass', 'XXXXXXXXXXXXXXXXXXX\x{d}') called at C:\pics\apitest.pl line 22 where apitest.pl was simply me copying and pasting the code in. I can't get the Perl Facebook API to do.. well...anything, unfortunately. Just thought I"d let you know. -Clint
Subject: Re: [rt.cpan.org #43953] just so you know
Date: Sun, 8 Mar 2009 21:48:47 -0400
To: bug-WWW-Facebook-API [...] rt.cpan.org
From: Clayton Scott <clayton.scott [...] gmail.com>
Hi Clint, You'll notice that in the (albeit crappy) output that there is an error message that says: Invalid API key. Can you verify your API key and secret with Facebook's test console? http://developers.facebook.com/tools.php Clayton On Sun, Mar 8, 2009 at 8:10 PM, ClintJCL@gmail.com via RT <bug-WWW-Facebook-API@rt.cpan.org> wrote: Show quoted text
> Sun Mar 08 20:10:32 2009: Request 43953 was acted upon. > Transaction: Ticket created by ClintJCL@gmail.com >       Queue: WWW-Facebook-API >     Subject: just so you know >   Broken in: (no value) >    Severity: (no value) >       Owner: Nobody >  Requestors: ClintJCL@gmail.com >      Status: new >  Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=43953 > > > > the sample program in your API doc: > http://backpan.perl.org/authors/id/U/UN/UNOBE/WWW-Facebook-API-v0.3.1.readme > > > doesn't even work.. it says: > > > Enter your public API key: XXXXXXXXXXXXXXXXXXX > Enter your API secret: XXXXXXXXXXXXXXXXXXX > Enter your e-mail address: clintjcl@gmail.com > Enter your password: XXXXXXXXXXXXXXXXXXX > Error during REST auth.createToken call: > params = >        api_key:XXXXXXXXXXXXXXXXXXX >        call_id:1236557190.38875 >        format:JSON >        method:facebook.auth.createToken >        v:1.0 > response = > {"error_code":101,"error_msg":"Invalid API > key","request_args":[{"key":"api_key","value":"XXXXXXXXXXXXXXXXXXX\r"},{"key > ":"call_id","value":"1236557190.38875"},{"key":"format","value":"JSON"},{"key":"method","value":"facebook.auth.createToken"},{"key": > "v","value":"1.0"},{"key":"sig","value":"20ea41af9f8d1800134d68c4e122cd99"}]} >        WWW::Facebook::API::call('WWW::Facebook::API=HASH(0x207dae0)', > 'auth.createToken') called at C:/Perl/site/lib/WWW/Facebook/A > PI/Auth.pm line 26 > > WWW::Facebook::API::Auth::create_token('WWW::Facebook::API::Auth=HASH(0x20fa728)') > called at C:/Perl/site/lib/WWW/Facebook/A > PI/Auth.pm line 78 > > WWW::Facebook::API::Auth::login('WWW::Facebook::API::Auth=HASH(0x20fa728)', > 'email', 'clintjcl@gmail.com\x{d}', 'pass', 'XXXXXXXXXXXXXXXXXXX\x{d}') > called at C:\pics\apitest.pl line 22 > > > where apitest.pl was simply me copying and pasting the code in. > > I can't get the Perl Facebook API to do.. well...anything, unfortunately. > > Just thought I"d let you know. > > -Clint > > > > the sample program in your API doc: > http://backpan.perl.org/authors/id/U/UN/UNOBE/WWW-Facebook-API-v0.3.1.readme > > > doesn't even work.. it says: > > > Enter your public API key: XXXXXXXXXXXXXXXXXXX > Enter your API secret: XXXXXXXXXXXXXXXXXXX > Enter your e-mail address: clintjcl@gmail.com > Enter your password: XXXXXXXXXXXXXXXXXXX > Error during REST auth.createToken call: > params = >         api_key:XXXXXXXXXXXXXXXXXXX >         call_id:1236557190.38875 >         format:JSON >         method:facebook.auth.createToken >         v:1.0 > response = > {"error_code":101,"error_msg":"Invalid API key","request_args":[{"key":"api_key","value":"XXXXXXXXXXXXXXXXXXX\r"},{"key > ":"call_id","value":"1236557190.38875"},{"key":"format","value":"JSON"},{"key":"method","value":"facebook.auth.createToken"},{"key": > "v","value":"1.0"},{"key":"sig","value":"20ea41af9f8d1800134d68c4e122cd99"}]} >         WWW::Facebook::API::call('WWW::Facebook::API=HASH(0x207dae0)', 'auth.createToken') called at C:/Perl/site/lib/WWW/Facebook/A > PI/Auth.pm line 26 >         WWW::Facebook::API::Auth::create_token('WWW::Facebook::API::Auth=HASH(0x20fa728)') called at C:/Perl/site/lib/WWW/Facebook/A > PI/Auth.pm line 78 >         WWW::Facebook::API::Auth::login('WWW::Facebook::API::Auth=HASH(0x20fa728)', 'email', 'clintjcl@gmail.com\x{d}', 'pass', 'XXXXXXXXXXXXXXXXXXX\x{d}') called at C:\pics\apitest.pl line 22 > > > where apitest.pl was simply me copying and pasting the code in. > > I can't get the Perl Facebook API to do.. well...anything, unfortunately. > > Just thought I"d let you know. > > -Clint > >
-- Clayton Scott clayton.scott@gmail.com
Subject: Re: [rt.cpan.org #43953] just so you know
Date: Mon, 9 Mar 2009 11:37:40 -0400
To: bug-WWW-Facebook-API [...] rt.cpan.org
From: __Clint__ <clintjcl [...] gmail.com>
Unfortunately I don't see how I can test my API key and secret with that test console. I don't see anything on that page relating to API key and secret. I know I pasted them directly from my text file where I had stored them after facebook gave them to me. My other attempts to use the API did not give me that error message, but simply failed due to other error messages. Usually "Invalid parameter" with no indication (that I could grok) of which parameter that was. The perl flickr API was something I could figure out, but the facebook flickr API just seems like a tough egg to crack.
Subject: Re: [rt.cpan.org #43953] just so you know
Date: Mon, 9 Mar 2009 11:43:31 -0400
To: bug-WWW-Facebook-API [...] rt.cpan.org
From: __Clint__ <clintjcl [...] gmail.com>
Hmm, on second thought, that console told me an API key that was NOT the same API key I had been given before. I'm just trying to create a scriptable command-line photo uploader, for me and only for me. Does this have to be tied to a specific "application" I create in facebook just to work? Do I have to use a separate API key for every "application"? On flickr, as a user I get one API key and that works for everything. Is facebook different? Because the key in that console is most definitely NOT the one facebook originally gave to me.
Subject: Re: [rt.cpan.org #43953] just so you know
Date: Mon, 9 Mar 2009 11:53:14 -0400
To: bug-WWW-Facebook-API [...] rt.cpan.org
From: __Clint__ <clintjcl [...] gmail.com>
After some more futzing... I get: 'objToJson' will be obsoleted. Please use 'encode' instead. at C:/Perl/site/lib/JSON/Any.pm line 316 hash- or arrayref expected (not a simple scalar, use allow_nonref to allow this) at C:/Perl/site/lib/JSON/Any.pm line 316
On Mon Mar 09 11:44:47 2009, ClintJCL@gmail.com wrote: Show quoted text
> Hmm, on second thought, that console told me an API key that was NOT the > same API key I had been given before. > > I'm just trying to create a scriptable command-line photo uploader, for me > and only for me. Does this have to be tied to a specific "application" I > create in facebook just to work? Do I have to use a separate API key for > every "application"? On flickr, as a user I get one API key and that works > for everything. Is facebook different? > > Because the key in that console is most definitely NOT the one facebook > originally gave to me.
Unfortunately desktop apps seem to be a pain ( according to the forum http://forum.developers.facebook.com/viewforum.php?id=10 ) and I don't have any experience with them. Facebook is very different. Here is an architectural overview of the typical app: http://wiki.developers.facebook.com/index.php/Random_questions#Basic_Application_Architecture I've posted another example app as a followup to another user question. If you could try that you and let me know how it goes, I'll be happy to help out. https://rt.cpan.org/Ticket/Display.html?id=43972#txn-575555 Clayton
Subject: Re: [rt.cpan.org #43953] just so you know
Date: Tue, 10 Mar 2009 11:53:50 -0400
To: bug-WWW-Facebook-API [...] rt.cpan.org
From: __Clint__ <clintjcl [...] gmail.com>
Unfortunately I found a Python photo uploader that worked in 1 try, so I will have to abandon trying to figure this out in Perl. As well as PHP (i was going down 3 different routes, and finally found one that worked). But now I have to learn Python. YUUUUCK! Sorry for all the hassle! On Mon, Mar 9, 2009 at 11:59 PM, Clayton L. Scott via RT < bug-WWW-Facebook-API@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=43953 > > > On Mon Mar 09 11:44:47 2009, ClintJCL@gmail.com wrote:
> > Hmm, on second thought, that console told me an API key that was NOT the > > same API key I had been given before. > > > > I'm just trying to create a scriptable command-line photo uploader, for
> me
> > and only for me. Does this have to be tied to a specific "application" I > > create in facebook just to work? Do I have to use a separate API key for > > every "application"? On flickr, as a user I get one API key and that
> works
> > for everything. Is facebook different? > > > > Because the key in that console is most definitely NOT the one facebook > > originally gave to me.
> > > Unfortunately desktop apps seem to be a pain ( according to the forum > http://forum.developers.facebook.com/viewforum.php?id=10 ) and I don't > have any experience with them. > > > Facebook is very different. Here is an architectural overview of the > typical app: > > http://wiki.developers.facebook.com/index.php/Random_questions#Basic_Application_Architecture > > I've posted another example app as a followup to another user question. > If you could try that you and let me know how it goes, I'll be happy to > help out. > > https://rt.cpan.org/Ticket/Display.html?id=43972#txn-575555 > > Clayton >