static string GetApiBaseUrl(string relativeUrl) { return (relativeUrl ?? String.Empty).StartsWith("method/") ? "https://api.facebook.com/" : "https://graph.facebook.com/"; } }