// points update only
function FacebookPublishPoints(varA, varB, varC, varD, varE, varF, varG)
{
var prop  = {
        "Overall Rank" : varF,
        "Movement" : varG
        };
FB.ui(
   {
     method: 'stream.publish',
     message: varA,
     attachment: {
       name: varB,
       caption: '&nbsp;',
       description: (
         varC
       ),
       properties : prop,
       media: [{ 
        type: 'image', 
        src: varD, 
        href: varE}
        ],
       href: varE
     },
     action_links: [
       { text: varA, href: varE }
     ],
     user_message_prompt: varA + ' ' + varB
   },
   function(response) {
     if (response && response.post_id) {
       //alert('Post was published.');
     } else {
       //alert('Post was not published.');
     }
   }
 );
}

// mini leagues only
function FacebookPublishMiniLeague(varA, varB, varC, varD, varE, varF, varG)
{
var prop  = {
        "League Name" : varF,
        "Password" : varG
        };
FB.ui(
   {
     method: 'stream.publish',
     message: varA,
     attachment: {
       name: varB,
       caption: '&nbsp;',
       description: (
         varC
       ),
       properties : prop,
       media: [{ 
        type: 'image', 
        src: varD, 
        href: varE}
        ],
       href: varE
     },
     action_links: [
       { text: varA, href: varE }
     ],
     user_message_prompt: varA + ' ' + varB
   },
   function(response) {
     if (response && response.post_id) {
       //alert('Post was published.');
     } else {
       //alert('Post was not published.');
     }
   }
 );
}

// Trophies
function FacebookPublishTrophy(varA, varB, varC, varD, varE)
{
FB.ui(
   {
     method: 'stream.publish',
     message: varA,
     attachment: {
       name: varB,
       caption: '&nbsp;',
       description: (
         varC
       ),
       media: [{ 
        type: 'image', 
        src: varD, 
        href: varE}
        ],
       href: varE
     },
     action_links: [
       { text: varA, href: varE }
     ],
     user_message_prompt: varA + ' ' + varB
   },
   function(response) {
     if (response && response.post_id) {
       //alert('Post was published.');
     } else {
       //alert('Post was not published.');
     }
   }
 );
}


// New Teams
function FacebookPublishNew(varA, varB, varC, varD, varE, varF)
{
var prop  = {
        "Team Name" : varF
        };
FB.ui(
   {
     method: 'stream.publish',
     message: varA,
     attachment: {
       name: varB,
       caption: '&nbsp;',
       description: (
         varC
       ),
       properties : prop,
       media: [{ 
        type: 'image', 
        src: varD, 
        href: varE}
        ],
       href: varE
     },
     action_links: [
       { text: varA, href: varE }
     ],
     user_message_prompt: varA + ' ' + varB
   },
   function(response) {
     if (response && response.post_id) {
       //alert('Post was published.');
     } else {
       //alert('Post was not published.');
     }
   }
 );
}
