             .args(requiredFields, {}, {})
             .fetch (err, fields, entries) ->
                 return callback err if err
+
                 log.info "Import finished"
                 callback()
 

        else # Already uptodate, nothing to do.
            log.info "LinkedIn contact #{cozyContact.fn} already synced and uptodate"
            log.debug "LContact #{linkContact.n}already synced and uptodate"
    else
        for cozyContact in entries.cozyContacts
            if CompareContacts.isSamePerson cozyContact, linkContact
                log.info "Link #{cozyContact.fn} to linkedin account"
                updateContact cozyContact, linkContact
                return
        log.info "Create #{linkContact.fn} contact"
        Contact.create linkContact, endSavePicture

        return next err if err
        if body.status? and body.status is 'error'
            return next new Error(body.status_details)

        entries.listContacts = body.contacts
        if not entries.listContacts?
            next new Error("Error retrieving contacts from request")
        else
            log.info 'List contact OK'
            next()


# Retrieve a list of all Cozy contacts, find all the contacts linked to the
