简体   繁体   English

在Windows Phone 8中无法获取Facebook联系人

[英]not getting facebook contacts in windows phone 8

I am trying to get all contacts with numbers. 我正在尝试与所有联系人取得联系。 I am doing following code. 我正在执行以下代码。 problem is only that i am getting all the contacts but i am not getting mobile numbers of all facebook contacts. 问题只是我得到了所有联系人,但我没有得到所有Facebook联系人的手机号码。 what can i do to show that facebook contacts also . 我该怎么做才能表明Facebook联系人也。

        cons.SearchCompleted += newEventHandler <ContactsSearchEventArgs(Contacts_SearchCompleted);

        cons.SearchAsync(String.Empty, FilterKind.None, "Contacts Test #1"  );



        void Contacts_SearchCompleted(object sender, ContactsSearchEventArgs e)
        {

           foreach (Contact con in e.Results)
             { 
                  if (con.PhoneNumbers.Count()>0)
                  { }
             }
  • You can only get friends who authorized your App too since v2.0 - only with an App created before end of April 2014 (v1.0). 从v2.0版本开始,您只能获得也对您的应用程序进行了授权的朋友-仅适用于2014年4月(v1.0)之前创建的应用程序。 But it will stop returning all friends after April 2015. 但是它将在2015年4月之后停止返回所有朋友。
  • You can´t get phone numbers of friends, that was never possible. 您无法获得朋友的电话号码,这是不可能的。 You can´t even get the phone number of the authorized user. 您甚至无法获得授权用户的电话号码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM