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 7412231
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:30:37+00:00 2026-05-29T06:30:37+00:00

https://graph.facebook.com/me/accounts?access_token=USERS_AUTH_TOKEN returns a list of pages the user has admin status in (in JSON

  • 0
https://graph.facebook.com/me/accounts?access_token=USERS_AUTH_TOKEN 

returns a list of pages the user has admin status in (in JSON format).

I would like to list all the pages in a dropdownlist, and make the user choose which facebook page he wants to use (on my webapp), so I can obtain the specific access token for that facebook page.

My question is – whats the easiest and best way to do that. Ive never worked with JSON before, but I guess theres a pretty easy was to do this through the facebook-sdk.

  • 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-29T06:30:38+00:00Added an answer on May 29, 2026 at 6:30 am

    Okay figured out a way to do it. But I have no idea ifs the right way or the most optimal.
    Would very much like inputs on it.

     [DataContract]
     internal class FacebookObj
     {
        [DataMember]
        public List<FacebookAccount> data;
        [DataMember]
        public FacebookNext paging;
     }   
    
        [DataContract]
        internal class FacebookAccount
        {
            [DataMember]
            public string name;
            [DataMember]
            public string category;
            [DataMember]
            public string id;
            [DataMember]
            public string access_token;
        }
    
        [DataContract]
        internal class FacebookNext
        {
            [DataMember]
            public string next;
        }
    
    public void ShowPages(string authToken) {
    
     WebRequest webRequest = WebRequest.Create("https://graph.facebook.com/me/accounts?access_token=" + authToken);
    
                WebResponse webResponse = webRequest.GetResponse();
    
                Stream sr = webResponse.GetResponseStream();
    
                if (sr != null)
                {
                    jsonSer = new DataContractJsonSerializer(typeof(FacebookObj));
                    FacebookObj o = (FacebookObj)jsonSer.ReadObject(sr2);
    
                    foreach (FacebookAccount s in o.data)
                    {
                        //Do stuff
                        Response.Write(s.id + " - " + s.name + "<br />");
                    }
    
    
    
                }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can do I use: ' https://graph.facebook.com/ .$data[user_id].?access_token=.$data[oauth_token]' After the user accepts my application
I know how to use graph api - https://graph.facebook.com/{id}/feed|posts to get user's and page's
I can easily get the unread notifications with this query: https://graph.facebook.com/USER_ID/notifications?access_token=ACCESS_TOKEN Is it possible
i have: user facebook data ( https://graph.facebook.com/btaylor ) facebook application data ( https://graph.facebook.com/2439131959 )
When I send a request to https://graph.facebook.com/me/home?access_token= (access code goes here) Facebook gives me
I'm getting the error below for the graph API call: https://graph.facebook.com/[MYID]/feed?limit=100&access_token=[TOKEN] { error: {
$(document).ready(function () { $(#example).autocomplete(https://graph.facebook.com/me/friends?access_token= + accessToken + &callback=?, { width: 250, height: 400, max:
How can I modify this to get permissions for offline_access and others https://graph.facebook.com/oauth/access_token?grant_type=client_credentials&client_id=+appId+&client_secret= +
I'm using the following code to retrieve a user's friends: $fql_query_url = 'https://graph.facebook.com/fql?q=SELECT+uid,+name,+pic_square+FROM+user+WHERE+uid+IN+(SELECT+uid2+FROM+friend+WHERE+uid1+=+me())+order+by+name&access_token=' .
Using https://graph.facebook.com/id/likes?access_token=XXXXXXX works for some urls as does http://graph.facebook.com/?ids=url but some urls from locations

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.