Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- window.fbAsyncInit = function() {
- window.inviteFriends = function() {
- FB.init({
- appId : '{{facebookAppId}}',
- status : true,
- xfbml : true,
- version : 'v2.0'
- });
- FB.ui({
- method: 'send',
- link: 'site name',
- display: 'dialog',
- app_id: '{{facebookAppId}}'
- },
- function(response) {
- if (response) {
- startLoading();
- } else {
- console.log("NOTCLICKED");
- }
- });
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement