private void Initialize(IAccessToken token, string path, string httpMethod = default(string), string version = default(string)) { _token = (token as DroidAccessToken).ToNative(); Path = path; HttpMethod = httpMethod; Version = version; GraphCallback callback = new GraphCallback(); _request = new GraphRequest(_token, Path, null, null, callback); }
private void Initialize(FbAccessToken token, string path, string httpMethod = default(string), string version = default(string)) { _token = token.ToNative(); Path = path; HttpMethod = httpMethod; Version = version; GraphCallback callback = new GraphCallback(); Xamarin.Facebook.HttpMethod http = Xamarin.Facebook.HttpMethod.Get; if (httpMethod == "POST") { http = Xamarin.Facebook.HttpMethod.Post; } _request = new GraphRequest(_token, Path, null, http, callback); }