Contacts: Import multiple file types and sync to external services

Created on 27 Oct 2016  路  9Comments  路  Source: nextcloud/contacts

Formats to support

  • [ ] Gmail .csv
  • [ ] Outlook .csv
  • [ ] Thunderbird .csv
  • [ ] Yahoo .csv
  • [ ] Gmail .vcf
  • [ ] Yahoo .vcf
  • [ ] any type of LDAP data

    Even more

Sync contacts with

  • [ ] Facebook
  • [ ] Twitter
  • [ ] Google+
  • [ ] Diaspora


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

1. to develop compatibility enhancement high

Most helpful comment

Here is a start:
synchronizing the profile picture from facebook (without the need of an own facebook account or any exposure of contact details):
https://github.com/call-me-matt/contacts

social-profile

What do you think?

Next step will be to enable regular syncs of all contacts via cron.
Help would be highly appreciated, especially with reviewing the structure of my code (just starting to learn vue)

All 9 comments

@tcitworld for facebook, I had a previous built app: https://github.com/skjnldsv/fbsync

But this is a tricky one. I used some shady stuff to retrieve facebook data because otherwise, we have to declare ourselves as devs on facebook and many other stuff from their api is restricted or too hard to use (unless it has changed since)

There should work supported format in actual version first ;)

I try to import a Yahoo.vcf and get error on NC 11.0.1:

HTTP/1.1 415 Validation error in vCard: CardDAV servers are not allowed to accept vCard 2.1

Is there a workaround available?

You can try manually edit them to vcard 3 or 4. :)
But there could be some compatibility issues.

My workaround was to install "My Contacts Backup" app on iOS (up to 500 contacts can be exported in free version) and import the file in NextCloud.
This way I imported Yahoo, Exchange and iCloud Contacts at once and move them to NextCloud :)

I created a small python script for converting googles CSV to vcard3.
Currently this works quite well locally, in the near future as a CGI web service.
Since it depends on pythons CSV- and VCARD-modules conversion to javascript would not be as easy as just changing the language...

@skjnldsv I found ThunderBird, Outlook, Foxmail(a popular email client in China) only support to export vcard 2.1, why this app only support vcard 3.0 and 4.0?

Hello. I am motivated to start some work on this topic, as described in #1546
But I need support setting everything up. Help is appreciated:
https://help.nextcloud.com/t/content-security-policy-in-dev-environment/75931

Here is a start:
synchronizing the profile picture from facebook (without the need of an own facebook account or any exposure of contact details):
https://github.com/call-me-matt/contacts

social-profile

What do you think?

Next step will be to enable regular syncs of all contacts via cron.
Help would be highly appreciated, especially with reviewing the structure of my code (just starting to learn vue)

Hey!!
Awesome work! That would be super nice to have this indeed!

Would you open a pull request so we can have a look at the code together? :rocket:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Peque picture Peque  路  3Comments

caugner picture caugner  路  3Comments

IamSAB picture IamSAB  路  4Comments

brantje picture brantje  路  5Comments

Kalytis picture Kalytis  路  4Comments