[erlang-questions] erlang2facebook freinds_get is failing

Salonee Sinha Roy ssroy1979@REDACTED
Sat Feb 14 21:15:27 CET 2009


Nick

That was the problem. I started inet and it started working fine.

I will also take a look at the package you created.

Thanks for your help

Salonee

On Sat, Feb 14, 2009 at 10:29 AM, Nick Gerakines <nick@REDACTED>wrote:That

> Do you have inets running (aka `inets:start().`)?
>
> I don't know if erlang2facebook is maintained anymore either. I've
> been using Erlang for Facebook application development for a while now
> and put up a few Erlang/Facebook related tools and examples.
>
>  * http://github.com/ngerakines/erlang_facebook
>  * http://github.com/ngerakines/facebook_wiiinfo
>
> Hope that helps.
>
> # Nick Gerakines
>
>
> 2009/2/14 Salonee Sinha Roy <ssroy1979@REDACTED>:
> > Hi All
> > I am trying to write a facebook app. My code for calling erlang2facebook
> > method facebook:friends_get/1 is
> >
> > {friends_get_Response,Attrs,[X]} = facebook:friends_get(Session),
> >
> >
> > I get the following errror from yaws
> > ERROR erlang  code  crashed:
> >  File: /home/owner/Desktop/erlang/yaws/mask/friends.yaws:3
> > Reason: {noproc,
> >             {gen_server,call,
> >                 [httpc_manager,
> >                  {request,
> >                      {request,undefined,<0.71.0>,0,http,
> >                          {"api.facebook.com",80},
> >                          "/restserver.php",[],post,
> >
>  {http_request_h,undefined,"keep-alive",undefined,
> >                              undefined,undefined,undefined,undefined,
> >                              undefined,undefined,undefined,undefined,
> >                              undefined,undefined,undefined,undefined,
> >
> > undefined,"api.facebook.com",undefined,undefined,
> >                              undefined,undefined,undefined,undefined,
> >                              undefined,undefined,undefined,[],undefined,
> >                              undefined,undefined,undefined,"0",undefined,
> >                              undefined,undefined,undefined,undefined,
> >                              undefined,[]},
> >                          {"application/x-www-form-urlencoded",
> >
> >
> <<"sig=d2ca310df4f5d5a987bb2c6af23e7690&api_key=648e964d7625f3ed0d49cbb55b46c96a&call_id=1234628320520330&method=facebook.friends.get&session_key=e96b0d4702c06f34e28a68df-713876569&v=1.0">>},
> >
>  {http_options,"HTTP/1.1",60000,true,[],undefined,
> >                              false},
> >
> > "http://api.facebook.com/restserver.php",[],none,[]}},
> >                  infinity]}}
> > Req: {http_request,'GET',
> >
> >
> {abs_path,"/friends.yaws?session=e96b0d4702c06f34e28a68df%2D713876569&soc=fb&uid=713876569"},
> >                    {1,1}}
> > Stack: [{gen_server,call,3},
> >         {http,handle_request,6},
> >         {facebook,call,2},
> >         {m2,out,1},
> >         {yaws_server,deliver_dyn_part,8},
> >         {yaws_server,aloop,3},
> >         {yaws_server,acceptor0,2},
> >         {proc_lib,init_p_do_apply,3}]
> >
> >
> > Any idea what might be going wrong. Any help would be appreciated.
> >
> > _______________________________________________
> > erlang-questions mailing list
> > erlang-questions@REDACTED
> > http://www.erlang.org/mailman/listinfo/erlang-questions
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20090214/8a4af7b4/attachment.htm>


More information about the erlang-questions mailing list