public void CreateOAuth(string name, string oAuthToken, Roar.Callback <WebObjects.Facebook.CreateOauthResponse> cb) { if (name == "" || oAuthToken == "") { logger.DebugLog("[roar] -- Must specify username and oauthToken for creation"); return; } Roar.WebObjects.Facebook.CreateOauthArguments args = new Roar.WebObjects.Facebook.CreateOauthArguments(); args.name = name; args.oauth_token = oAuthToken; facebook.create_oauth(args, new CreateOAuthCallback(cb)); }
public void DoWebplayerCreate(string name, Roar.Callback <WebObjects.Facebook.CreateOauthResponse> cb) { if (oAuthToken == null || oAuthToken == "") { createoAuthCB = cb; postLoginAction = PostLogionAction.CreateRoar; requestedName = name; AttemptFacebookLoginChain(); } else { if (name == "" || oAuthToken == "" || oAuthToken == null) { logger.DebugLog("[roar] -- Must specify username and signed req for creation"); return; } Roar.WebObjects.Facebook.CreateOauthArguments args = new Roar.WebObjects.Facebook.CreateOauthArguments(); args.name = name; args.oauth_token = oAuthToken; facebook.create_oauth(args, new FacebookCreateCallback(cb, this)); } }
public void create_oauth(Roar.WebObjects.Facebook.CreateOauthArguments args, ZWebAPI.Callback <Roar.WebObjects.Facebook.CreateOauthResponse> cb) { api.MakeCall("facebook/create_oauth", args.ToHashtable(), new CallbackBridge <Roar.WebObjects.Facebook.CreateOauthResponse>(cb, create_oauth_response_parser), false); }