how to put the total score for quiz application to share by facebook?

I have a program which is quiz question for Facebook and I have the total score and I have the share part, how can I put the total score for this application to be shared when they click on share button.
and that is the variable for total score:

 if(!strcmp($array1[$z],$array2[$z])) {

This is my script for sharing:

    (function(d, s, id) {
        var js, fjs = d.getElementsByTagName(s)[0];
        if (d.getElementById(id)) return;
        js = d.createElement(s); = id;
        js.src =    "//";
        fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));

Source: facebook

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.