Created
May 13, 2014 20:04
-
-
Save joaomdmoura/1c88c632f77ea400d770 to your computer and use it in GitHub Desktop.
facebook invite
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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