[erlang-questions] erlang2facebook freinds_get is failing

Salonee Sinha Roy <>
Sat Feb 14 17:24:01 CET 2009


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20090214/1bfa98a2/attachment.html>


More information about the erlang-questions mailing list