Exemple #1
0
        public ActionResult FacebookComment(string fbcommentid, string profileid, string message)
        {
            Api.Groups.Groups ApiobjGroups                 = new Api.Groups.Groups();
            Domain.Socioboard.Domain.Groups objGroups      = (Domain.Socioboard.Domain.Groups)(new JavaScriptSerializer().Deserialize(ApiobjGroups.GetGroupDetailsByGroupId(Session["group"].ToString()), typeof(Domain.Socioboard.Domain.Groups)));
            Api.Facebook.Facebook           ApiobjFacebook = new Api.Facebook.Facebook();
            string ret = ApiobjFacebook.FacebookComment(message, profileid, fbcommentid, objGroups.UserId.ToString());

            return(Content(ret));
        }
Exemple #2
0
 public ActionResult FacebokReply()
 {
     try
     {
         Api.Facebook.Facebook         ApiobjFacebook = new Api.Facebook.Facebook();
         Domain.Socioboard.Domain.User objUser        = (Domain.Socioboard.Domain.User)Session["User"];
         string comment    = Request.QueryString["comment"];
         string ProfileId  = Request.QueryString["ProfileId"];
         string messageid  = Request.QueryString["messageid"];
         string replaypost = ApiobjFacebook.FacebookComment(comment, ProfileId, messageid, objUser.Id.ToString());
         return(Content("success"));
     }
     catch (Exception ex)
     {
         Console.Write(ex.StackTrace);
         return(Content(""));
     }
 }
 public ActionResult FacebokReply()
 {
     try
     {
         Api.Facebook.Facebook ApiobjFacebook = new Api.Facebook.Facebook();
         Domain.Socioboard.Domain.User objUser = (Domain.Socioboard.Domain.User)Session["User"];
         string comment = Request.QueryString["comment"];
         string ProfileId = Request.QueryString["ProfileId"];
         string messageid = Request.QueryString["messageid"];
         string replaypost = ApiobjFacebook.FacebookComment(comment, ProfileId, messageid, objUser.Id.ToString());
         return Content("success");
     }
     catch (Exception ex)
     {
         Console.Write(ex.StackTrace);
         return Content("");
     }
 }
        public ActionResult FacebookComment(string fbcommentid, string profileid, string message)
        {

            Api.Groups.Groups ApiobjGroups = new Api.Groups.Groups();
            Domain.Socioboard.Domain.Groups objGroups = (Domain.Socioboard.Domain.Groups)(new JavaScriptSerializer().Deserialize(ApiobjGroups.GetGroupDetailsByGroupId(Session["group"].ToString()), typeof(Domain.Socioboard.Domain.Groups)));
            Api.Facebook.Facebook ApiobjFacebook = new Api.Facebook.Facebook();
            string ret = ApiobjFacebook.FacebookComment(message, profileid, fbcommentid, objGroups.UserId.ToString());
            return Content(ret);
        }
 public string FbPostComment(string Message, string ProfileId,string PostId) 
 {
     string output = "NotCommented";
     if (string.IsNullOrEmpty(ProfileId) || string.IsNullOrEmpty(Message) || string.IsNullOrEmpty(PostId)) 
     {
         return output;
     }
     Api.Facebook.Facebook fb = new Api.Facebook.Facebook();
     Domain.Socioboard.Domain.User user = (Domain.Socioboard.Domain.User)Session["user"];
   string x =  fb.FacebookComment(Message, ProfileId,PostId,user.Id.ToString());
   if (!string.IsNullOrEmpty(x)) 
   {
      
       output = "Commented";
   }
     return output;
 }