Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
Posts: 85
Registered: ‎06-22-2013
My Device: N/A
My Carrier: N/A

filter contacts with social profile(Facebook, Tweeter)?

Hi Guys,

 

I am tring to list mobile contacts that is related to a social account like facebook, i am using this code to list them but there is no contacts listed, (I have social contacts in my phone contacts directory).

 

ContactService * service  = new ContactService();
ContactListFilters filter ;
filter.setHasAttribute(AttributeKind::Profile);
QList<Contact>contacts = service->contacts(filter);

 Thanks,

Developer
Posts: 292
Registered: ‎07-25-2008
My Device: Passport

Re: filter contacts with social profile(Facebook, Tweeter)?

Third party apps (anything not build by BlackBerry themselves, pretty much) don't have access to contact data from "social sources".  Unless that ever changes, I wouldn't be surprised if you're unable to actually access the data you're looking for.

Developer
Posts: 85
Registered: ‎06-22-2013
My Device: N/A
My Carrier: N/A

Re: filter contacts with social profile(Facebook, Tweeter)?

It works well with Skype, but not Facebook or twitter