Skip to content

Instantly share code, notes, and snippets.

@joaomdmoura
Created May 13, 2014 20:04
Show Gist options
  • Save joaomdmoura/1c88c632f77ea400d770 to your computer and use it in GitHub Desktop.
Save joaomdmoura/1c88c632f77ea400d770 to your computer and use it in GitHub Desktop.
facebook invite
facebookInviteFriends: function(e) {
e.preventDefault();
var leagueName = PalpiterosApp.layout.pageContent.model.attributes.name;
FB.ui({method: 'apprequests',
message: 'convidou você para o bolão '+leagueName+'',
data: {
leagueId: PalpiterosApp.layout.pageContent.model.id,
requestAuthor: PalpiterosApp.currentUser.id,
leagueToken: PalpiterosApp.layout.pageContent.model.attributes.token
}
}, requestCallback);
function requestCallback(data) {
return data;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment