Advertisement
Guest User

Untitled

a guest
Aug 28th, 2014
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. window.fbAsyncInit = function() {
  2. window.inviteFriends = function() {
  3. FB.init({
  4. appId : '{{facebookAppId}}',
  5. status : true,
  6. xfbml : true,
  7. version : 'v2.0'
  8. });
  9. FB.ui({
  10. method: 'send',
  11. link: 'site name',
  12. display: 'dialog',
  13. app_id: '{{facebookAppId}}'
  14. },
  15. function(response) {
  16. if (response) {
  17. startLoading();
  18. } else {
  19. console.log("NOTCLICKED");
  20. }
  21. });
  22. }
  23. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement