From 6224c987f02b6df30ab7f74f666bb9f8a7f15524 Mon Sep 17 00:00:00 2001 From: PranavAwasthi Date: Tue, 10 Dec 2024 11:05:02 +0530 Subject: [PATCH] Fixed post text issue in facebook sharing --- js/qsm-quiz.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/js/qsm-quiz.js b/js/qsm-quiz.js index c0325ac3..dfdd397b 100644 --- a/js/qsm-quiz.js +++ b/js/qsm-quiz.js @@ -1390,9 +1390,8 @@ function qmnSocialShare(network, mlw_qmn_social_text, mlw_qmn_title, facebook_id var pageUrlEncoded = encodeURIComponent(share_url); var url = ''; if (network == 'facebook') { - url = "https://www.facebook.com/dialog/feed?" + "display=popup&" + "app_id=" + facebook_id + - "&" + "link=" + pageUrlEncoded + "&" + "name=" + encodeURIComponent(mlw_qmn_social_text) + - "&" + "description="; + url = "https://www.facebook.com/dialog/share?" + "app_id=" + facebook_id + "&display=popup" + + "&hashtag=" + encodeURIComponent(mlw_qmn_social_text) + "&href=" + pageUrlEncoded; } if (network === 'linkedin') { url = "https://www.linkedin.com/sharing/share-offsite/?text=" + encodeURIComponent(mlw_qmn_social_text) + "&url=" + pageUrlEncoded;