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

  • SEARCH
  • Home
  • 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 7430491
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T09:08:56+00:00 2026-05-29T09:08:56+00:00

I am working on WPF application and I want to retrieve News Feed using

  • 0

I am working on WPF application and I want to retrieve News Feed using facebook Graph API so how I can access it also convert into serialize.!

Thank you.

  • 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-29T09:08:58+00:00Added an answer on May 29, 2026 at 9:08 am

    You’re gonna use Facebook.dll u can download it using Package Manager in Visual studio if u are using C# for example

    NuGet Package here..

    and code may look like this

    public List<string> Facebook(string query)
        {
           // Facebook.FacebookAPI api = new FacebookAPI();
    
            List<string> list = new List<string>();
            string[] arr = new string[5];
            string result = null;
            FacebookAPI api = new FacebookAPI(token);
    

    // query is ur search criteria

            JSONObject q = api.Get("https://graph.facebook.com/search?q="+query+"&type=post");
            foreach (JSONObject item in q.Dictionary["data"].Array)
            {
                if (item.IsDictionary)
                {
                    foreach (KeyValuePair<String,JSONObject> jso in item.Dictionary)
                    {
                        if (jso.Key == "message"/* || jso.Key == "name" || jso.Key == "description" || jso.Key == "link"*/)
                        {
                            for (int i = 0; i < 5; i++)
                            {
                                arr[i] = jso.Value.String;
    
                            }
                            list.Add (jso.Value.String);
    
                        }
                        else if (jso.Key == "likes")
                        {
                            foreach (JSONObject like in jso.Value.Dictionary["data"].Array)
                            {
                                foreach (KeyValuePair<String, JSONObject> lik in like.Dictionary)
                                {
                                    if (lik.Key == "name")
                                    {
                                        result += lik.Value.String;
    
                                    }
                                    else if (lik.Key == "id")
                                    {
                                        result += lik.Value.String;    
                                    }
                                }
                            }
                            foreach (KeyValuePair<String, JSONObject> count in jso.Value.Dictionary)
                            {
                                if (count.Key == "count")
                                {
                                    result += count.Value.String;
                                }
                            }
                        }
                        else if (jso.Key == "from")
                        {
                            foreach (KeyValuePair<String, JSONObject> froms in jso.Value.Dictionary)
                            {
                                if (froms.Key == "name")
                                {
                                    result += froms.Value.String;
                                }
                            }
                        } 
                    }
                }
                /*
                else if (item.IsArray)
                {
                    foreach (JSONObject j in item.Dictionary["data"].Array)
                    {
                        if (j.IsDictionary)
                        {
                            foreach (KeyValuePair<String,JSONObject> x in j.Dictionary)
                            {
                                result += (x.Key + " --- "+x.Value.String);
                            }
                        }
                    }
                }
                 */ 
            }
            return list;
        }
    

    you can of course change post and query to whatever you want to search in Facebook Graph API

    and there is another way to do that using FQL and its really easy

    hope that will be helpful.

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

Sidebar

Related Questions

I'm working on a WPF application and is using the Model-View-ViewModel pattern. The application
I'm working on a WPF application, and I'm structuring it using the MVVM pattern.
We have the beginnings of a modular wpf application built using prism. We want
I am working on a wpf application, when using Combo Box control i am
I am working on a WPF application and using a scrollViewer to view the
I am currently working on a WPF application where I want the user to
I'm working on a page based WPF application, and I want to change the
I'm currently using PrintVisual() in a wpf application to do printing. This is working
I am working on a client/server (WPF/WCF) application using the MVVM pattern. Properties on
I am working with WPF application and I want to assign a value of

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.