fbService.SendEmail(); not returning expected result

Jun 5, 2008 at 7:52 PM

I've done some testing with fbService.SendEmail(), and my test recipients are receiving emails, but the method is returning an empty string, instead of the expected "comma-separated list of the recipients to whom the email was successfully sent".

[0]: "xml" comes back as:

"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<notifications_sendEmail_response xmlns=\"http://api.facebook.com/1.0/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://api.facebook.com/1.0/ http://api.facebook.com/1.0/facebook.xsd\"/>\n"

Has anyone seen this method as expected ? Any ideas ?


        public string SendEmail(string recipients, string subject, string text, string fbml)
            string results = string.Empty;

            Dictionary<string, string> parameterList = new Dictionary<string, string>(5);
            parameterList.Add("method", "facebook.notifications.sendEmail");
            parameterList.Add("recipients", recipients);
            parameterList.Add("subject", subject);
            parameterList.Add("text", text);

            if (!string.IsNullOrEmpty(fbml))
                parameterList.Add("fbml", string.Format(_installedCulture, fbml));

            string xml = ExecuteApiCallString(parameterList, true);

Jun 7, 2008 at 4:08 PM
Discrepancies between the official documentation and the actual API aren't uncommon. You should enquire here: