diff --git a/src/lib/drivers/FacebookDriver.ts b/src/lib/drivers/FacebookDriver.ts index e1e9ebc..bc28880 100644 --- a/src/lib/drivers/FacebookDriver.ts +++ b/src/lib/drivers/FacebookDriver.ts @@ -17,6 +17,6 @@ export default class FacebookDriver extends Driver implements hasLink { } getLink(): string { - return `https://twitter.com/share?text=${encodeURIComponent(this.options?.shareText!)}&url=${this.options?.shareLink}` + return `https://facebook.com/sharer/sharer.php?u=${this.options?.shareLink}&t=${encodeURIComponent(this.options?.shareText!)}` } } diff --git a/src/lib/drivers/LinkedinDriver.ts b/src/lib/drivers/LinkedinDriver.ts index 8eabb2a..51acf0c 100644 --- a/src/lib/drivers/LinkedinDriver.ts +++ b/src/lib/drivers/LinkedinDriver.ts @@ -17,6 +17,6 @@ export default class LinkedinDriver extends Driver implements hasLink { } getLink(): string { - return `https://www.linkedin.com/sharing/share-offsite/?url=${this.options?.shareLink}` + return `https://www.linkedin.com/shareArticle?url=${this.options?.shareLink}` } } diff --git a/src/lib/drivers/TwitterDriver.ts b/src/lib/drivers/TwitterDriver.ts index 77fb90c..efa6279 100644 --- a/src/lib/drivers/TwitterDriver.ts +++ b/src/lib/drivers/TwitterDriver.ts @@ -17,6 +17,6 @@ export default class TwitterDriver extends Driver implements hasLink { } getLink(): string { - return `https://twitter.com/share?text=${encodeURIComponent(this.options?.shareText!)}&url=${this.options?.shareLink}` + return `https://twitter.com/intent/tweet?text=${encodeURIComponent(this.options?.shareText!)}&url=${this.options?.shareLink}` } } diff --git a/src/lib/drivers/WhatsappDriver.ts b/src/lib/drivers/WhatsappDriver.ts index 948ddc2..0163723 100644 --- a/src/lib/drivers/WhatsappDriver.ts +++ b/src/lib/drivers/WhatsappDriver.ts @@ -17,6 +17,6 @@ export default class WhatsappDriver extends Driver implements hasLink { } getLink(): string { - return `whatsapp://send?text=${this.options?.shareText} \n ${this.options?.shareLink}` + return `https://wa.me?text=${this.options?.shareText} \n ${this.options?.shareLink}` } }