[erlang-questions] erlang2facebook freinds_get is failing
Nick Gerakines
nick@REDACTED
Sat Feb 14 19:29:46 CET 2009
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
>
More information about the erlang-questions
mailing list