Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 696439
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T03:03:48+00:00 2026-05-14T03:03:48+00:00

I am using http://lite.facebook.com And i want to get some data from my account.

  • 0

I am using http://lite.facebook.com And i want to get some data from my account.
I am using HttpWebRequest for this.

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

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

for login I am using This 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 > 0)
                {
                    TempHtmlData = str.Substring(FirstPoint).Replace("name=\"lsd\"","").Replace("value","");
                }
                int SecondPoint = TempHtmlData.IndexOf("/>");
                if (SecondPoint > 0)
                {
                    Value = TempHtmlData.Substring(0, SecondPoint).Replace("=", "").Replace("\\", "").Replace("\"", "").Replace(" ", "");
                }
            }
        }
        string LoginData = "form_present=1&lsd=" + Value + "&email=" + UserName + "&password=" + Password + "";
        string ResponseData = httpHelper.postFormData(new Uri(FacebookUrls.Lite_LoginUrl), LoginData);

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

And For getting Profile Url And FriendList Url Iam doing This

 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));

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T03:03:49+00:00Added an answer on May 14, 2026 at 3:03 am

    Stop scraping HTML data and use their API

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

From http://www.parashift.com/c++-faq-lite/basics-of-inheritance.html#faq-19.5 A member (either data member or member function) declared in a protected
This is true for IE 7, 8, and 9. The page http://www.topics2look.com/code-examples/firebug-lite-race-condition/using-remote-firebug-lite-js-file.html loads Firebug
I'm already using http://php.net/pdo so I can get whatever I want from the user
I'm using http://code.google.com/p/flex-iframe/ for showing html in an flex application. To set this up
I am using http://java.sun.com/jsp/jstl/fmt tag library for outputting messages from Message Resource Bundle which
This is the SOAP document I'm trying to model using SOAP::Lite. <SOAP-ENV:Envelope xmlns:SOAP-ENC=http://schemas.xmlsoap.org/soap/encoding/ xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/
I'm using http://jqueryfordesigners.com/jquery-tabs/ for a project, the tabbing javascript code looks like this: <script
I have a question based on this question In the section http://www.parashift.com/c%2B%2B-faq-lite/private-inheritance.html#faq-24.3 the following
Using http://www.urlrewriting.net/ I want /File1.aspx to be /File1 Ive been trying like this: <add
Using http://github.com/archiloque/rest-client When posting a file using this line, the content type is set

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.