Exemple #1
0
 public static void API(
     string query,
     HttpMethod method,
     FacebookDelegate <IGraphResult> callback,
     WWWForm formData)
 {
     FacebookImpl.API(query, method, formData, callback);
 }
Exemple #2
0
 public static void API(
     string query,
     HttpMethod method,
     FacebookDelegate <IGraphResult> callback = null,
     Dictionary <string, string> formData     = null)
 {
     FacebookImpl.API(query, method, formData, callback);
 }
        /// <summary>
        /// Makes a call to the Facebook Graph API.
        /// </summary>
        /// <param name="query">
        /// The Graph API endpoint to call.
        /// You may prefix this with a version string to call a particular version of the API.
        /// </param>
        /// <param name="method">The HTTP method to use in the call.</param>
        /// <param name="callback">The callback to use upon completion.</param>
        /// <param name="formData">Form data for the request.</param>
        public static void API(
            string query,
            HttpMethod method,
            FacebookDelegate <IGraphResult> callback,
            WWWForm formData)
        {
            if (string.IsNullOrEmpty(query))
            {
                throw new ArgumentNullException("query", "The query param cannot be null or empty");
            }

            FacebookImpl.API(query, method, formData, callback);
        }