I wants some data of My Facebook Account but it not allowing me?
<p>I am using <a href="http://lite.facebook.com" rel="nofollow">http://lite.facebook.com</a> And i want to get some data from my account.
I am using HttpWebRequest for this.</p>

<p>I am able to login to facebook from my credential using web request And I got profile url from home page html.</p>

<p>Now when i am trying to get list of all friends then its kick me out login page.</p>

<p>for login I am using This Code.</p>

<pre><code>string HtmlData = httpHelper.getHtmlfromUrl(new Uri(FacebookUrls.Lite_MainpageUrl));
        lstInput = globussRegex.GetInputControlsNameAndValueInPage(HtmlData);
        foreach (string str in lstInput)
        {
            if (str.Contains("lsd"))
            {
                int FirstPoint = str.IndexOf("name=\"lsd\"");
                if (FirstPoint &gt; 0)
                {
                    TempHtmlData = str.Substring(FirstPoint).Replace("name=\"lsd\"","").Replace("value","");
                }
                int SecondPoint = TempHtmlData.IndexOf("/&gt;");
                if (SecondPoint &gt; 0)
                {
                    Value = TempHtmlData.Substring(0, SecondPoint).Replace("=", "").Replace("\\", "").Replace("\"", "").Replace(" ", "");
                }
            }
        }
        string LoginData = "form_present=1&amp;lsd=" + Value + "&amp;email=" + UserName + "&amp;password=" + Password + "";
        string ResponseData = httpHelper.postFormData(new Uri(FacebookUrls.Lite_LoginUrl), LoginData);

        int FirstProfileTag = ResponseData.IndexOf("/p/");
        int SecondProfileTag = ResponseData.IndexOf("\"&gt;Profile");
        if (FirstProfileTag &gt; 0 &amp;&amp; SecondProfileTag &gt; 0)
        {
            string TempProfileUrl = ResponseData.Substring(FirstProfileTag, SecondProfileTag - FirstProfileTag);
            string ProfileUrl = FacebookUrls.Lite_ProfileUrl + TempProfileUrl;
            GetUserProfileData(ProfileUrl);
        }
</code></pre>

<p>And For getting Profile Url And FriendList Url Iam doing This</p>

<pre><code> string HtmlData = httpHelper.getHtmlfromUrl(new Uri(ProfileUrl));
        string FriendUrl = "http://lite.facebook.com" + "/p/Pankaj-Mishra/1187787295/friends/";

        string HtmlData1 = httpHelper.getHtmlfromUrl(new Uri(FriendUrl));
</code></pre>

<p>I got perfect result when i tried for ProfileUrl.
but when i tried for frindUrl its logged out how can i solve this problem
Plz help me.</p>
