Facebook apps

Dave Hodgkinson davehodg at gmail.com
Fri Aug 6 20:53:06 BST 2010

On 6 Aug 2010, at 18:59, Zbigniew Lukasiak wrote:

> On Fri, Aug 6, 2010 at 6:54 PM, Dave Hodgkinson <davehodg at gmail.com> wrote:
>> On 6 Aug 2010, at 17:01, Zbigniew Lukasiak wrote:
>>> On Fri, Aug 6, 2010 at 4:34 PM, Dave Hodgkinson <davehodg at gmail.com> wrote:
>>>> On 29 Jul 2010, at 00:09, Eden Cardim wrote:
>>>>>>>>>> "Zbigniew" == Zbigniew Lukasiak <zzbbyy at gmail.com> writes:
>>>>>    Zbigniew> I don't know how much of that still applies.  In general
>>>>>    Zbigniew> it was awkward but possible with Catalyst - perhaps
>>>>>    Zbigniew> something making less assumptions could be more
>>>>>    Zbigniew> appropriate - but I have not yet tried anything else.
>>>>> I wrote quite a few facebook catalyst apps about 3 years ago, it used to
>>>>> be trivial. Not sure how much of the API they have changed now and if
>>>>> the maintainer of WWW::Facebook::API is still keeping it up to date, he
>>>>> used to be very diligent back then. Once you get passed the API auth,
>>>>> the rest of it is pretty much like any other webapp.
>>>> This seems to have petered out. Do we have a usable Facebook library
>>>> or not?
>>>> I now have an itch I want to scratch.
>>> I did not dig too deep - but after trying out some examples it seems
>>> that  WWW::Facebook::API does not work with the current Facebook API
>>> (i.e. what was announced as the graph api).
>> Seems to do what I want so far, even if I have to do my own graphing :)
> Hmm - do you use the authentication in a web app?  I've already
> described it in this thread - get_fb_params does not work for me
> (returns nothing - even though
> Facebook is sending some data to my script).

Yes, it bounced through a browser. seems odd, surely an LWP transaction
would do the job?


use WWW::Facebook::API;

my $client = WWW::Facebook::API->new(
    desktop => 1,
    throw_errors   => 1,
    api_key => 'xxx',
    secret => 'yyy',

my $token = $client->auth->login( sleep => 20 );
$client->auth->get_session( $token );

Is adequate to start making API calls.

More information about the london.pm mailing list