mangstadt/ez-vcard

what is the way to add social media contact?

Closed this issue · 1 comments

There is socialProfile property in vCard to add a social network. How to add it to my VCard object? Now i had to use addExtendedProperty():

String type = contactEnum.toString();
RawProperty property = vcard.addExtendedProperty("SOCIALPROFILE", url);
property.addParameter("TYPE", type);

ez-vcard does not recognize that property. However, as you have discovered, you can use the VCard.addExtendedProperty method to insert properties with arbitrary names and values into a vCard.