private bool OnFacebookLogin(string fbName)
    {
        GenralUserInfo _objGenralUserInfo = new GenralUserInfo();
        UserInfo objUserInfo = new UserInfo();
        objUserInfo.FacebookUid = _FacebookUid;
        objUserInfo.ApplicationType = ApplicationType;
        _objGenralUserInfo.RecentUsers = objUserInfo;
        if (objUserInfo.FacebookUid == null) return false;

        UserInfoManager umgr = new UserInfoManager();
        umgr.CheckFacebookAccountAvailability(_objGenralUserInfo);
        if (_objGenralUserInfo.RecentUsers.UserID != null && _objGenralUserInfo.RecentUsers.UserID > 0)
        {
            SetSessionValue(_objGenralUserInfo);
            return true;
        }
        return false;
    }
        public void CheckFacebookAccountAvailabilityTest()
        {
            UserInfoManager target = new UserInfoManager(); // TODO: Initialize to an appropriate value

            GenralUserInfo _objGenralUserInfo = new GenralUserInfo();
            UserInfo objUserInfo = new UserInfo();
            objUserInfo.UserName = "******";
            objUserInfo.UserPassword = "******";
            objUserInfo.FacebookUid = null;
            _objGenralUserInfo.RecentUsers = objUserInfo;

            //testing CheckFacebookAccountAvailability function
            target.CheckFacebookAccountAvailability(_objGenralUserInfo);

            //UserInfo objUserInfo = new UserInfo();
            objUserInfo.UserName = "******";
            objUserInfo.UserPassword = "******";
            objUserInfo.FacebookUid = 1598003497;
            _objGenralUserInfo.RecentUsers = objUserInfo;

            //testing CheckFacebookAccountAvailability function inside CheckFacebookAccountAvailability function
            object[] objParam = { _objGenralUserInfo.RecentUsers.FacebookUid };
            DataSet _objDataSet = GetDataSet("usp_GetFacebookUser", objParam);

            Assert.AreEqual(1, _objDataSet.Tables[0].Rows.Count);

            if (_objDataSet.Tables[0].Rows.Count > 0)
            {
                Assert.AreEqual(21058, (int)_objDataSet.Tables[0].Rows[0]["UserId"]);
                Assert.AreEqual("debbi_henkel", _objDataSet.Tables[0].Rows[0]["UserName"].ToString());
                Assert.AreEqual("Debbi", _objDataSet.Tables[0].Rows[0]["FirstName"].ToString());
                Assert.AreEqual("Henkel", _objDataSet.Tables[0].Rows[0]["LastName"].ToString());
            }
            //Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }