Invitations from unknown persons in LinkedIn or Face Book or other sites are considered potential risks since accepting such invitations could lead to downloading of dangerous viruses.
Even if the invitations appear to come from friends it is unreliable since it could be spoofed email.
It is better to delete such emails and go direct to your linked in or Facebook accounts and accept invitations from your inbox there… Related Story