Skip to content

Commit

Permalink
Fixed post text issue in facebook sharing
Browse files Browse the repository at this point in the history
  • Loading branch information
iam-pranav committed Dec 10, 2024
1 parent e748065 commit 6224c98
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions js/qsm-quiz.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6224c98

Please sign in to comment.