Web service consumed by toolkit?

May 18, 2008 at 1:06 PM

I'm trying to create a web service that will be consumed by my facebook app. The data returned by the web service will be based on some friend data, so it will need to make a call to the GetFriends API. What I'm trying to figure out is the best way to push the UserID and Session Key to the web service. What I'm thinking is when I generate the page that will eventually call the web service, I should store the needed data (such as session key) in some clientside javascript variables. Then, when calling the web service, pass in the javascript variables as parameters. Does this make sense?

Does anyone have an example of calling a web service from a page generated with the toolkit where the W S calls some Facebook APIs?