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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T21:57:33+00:00 2026-06-01T21:57:33+00:00

When I try to access the contacts list in Windows Phone 7 using Contacts.SearchAsync,

  • 0

When I try to access the contacts list in Windows Phone 7 using Contacts.SearchAsync, I get back a list of all the contacts on my phone.

However, iterating through the PhoneNumber property (list of ContactPhoneNumber’s), it does not contain any phone numbers from facebook…

i.e., if the contact has 2 numbers in the “People” hub, one that was manually added to the phone or through Live, and another that got integrated directly from facebook, the facebook phone number doesn’t show up in the PhoneNumber list for the contact.

Any thoughts on how to retreive the facebook contact phone number as well?

Here’s my code:

public MainPage()
{            
     Contacts myContacts = new Contacts();
     myContacts.SearchCompleted += new EventHandler<ContactsSearchEventArgs>(myContacts_SearchCompleted);
     myContacts.SearchAsync(String.Empty, FilterKind.None, "");
}

void myContacts_SearchCompleted(object sender, ContactsSearchEventArgs e)
{
     List<Contact> myContacts = e.Results.ToList<Contact>();
     int numbers = myContacts[1].PhoneNumbers.Count(); //Returns 0 if the contact was from facebook, returns 1 if the contact had a number from Live.
}

}

  • 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-06-01T21:57:35+00:00Added an answer on June 1, 2026 at 9:57 pm

    I’m pretty sure this is restricted on purpose by the operating system and you would need to request it as a feature on their user voice site. You can’t normally access friends phone numbers from the Facebook API (even if you created your own Facebook app) so I’m guessing Facebook made Microsoft restrict access to those values from third party apps.

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

Sidebar

Related Questions

I have a scenario that when I try to access a hash key using
I get this wired error only when I try to access the web page
Any ideas why on some links that I try to access using HttpWebRequest I
I managed to get the access token for google's contacts API but when i
Whenever I try to access the number of a contact I get an index
I'm trying to get the contacts from Outlook (2007) using the following code: Outlook.Application
I try to access the MainContentBlock control from the aspx, but unable to do
When you try to access a key which isn't in a Dictionary (for example),
When I try to access info that is not presented in xml like so:
My app crash when I try to access any property of my NSDecimalNumber amount_before_current_year:

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.