Skip to content

Commit

Permalink
Merge pull request #2731 from QuizandSurveyMaster/CU-86cx98xu3-facebo…
Browse files Browse the repository at this point in the history
…ok-sharing-issue

Fixed post text issue in facebook sharing
  • Loading branch information
zubairraeen authored Dec 10, 2024
2 parents e748065 + 6224c98 commit 77e418f
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 77e418f

Please sign in to comment.