Пример #1
0
        public ActionResult Chat()
        {
            string FB_AccessToken = GetAccessTokenFromDatabase(this.UserHash);


            FacebookXmpp.Dashboard dash = new FacebookXmpp.Dashboard(FB_APIKey, FB_APISecret, FB_AccessToken);
            dash.Authenticate();

            //foreach (FacebookXmpp.Person item in dash.Friends)
            //{
            //    output += item.Name + " - " + item.Id + "<br/>";
            //}

            FacebookXmpp.Person target = new FacebookXmpp.Person();
            target.Id = "*****@*****.**";

            output += dash.Debug.ToString();

            //dash.SendMessage(target, "Testing the api");

            return(Content(output));
        }
Пример #2
0
 private void OpenChatConnection(string AccessToken)
 {
     dash = new FacebookXmpp.Dashboard(this.ApplicationId, this.ApplicationSecret, AccessToken);
 }