Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 16th, 2012  |  syntax: None  |  size: 0.73 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Invite friends popup is struggling, if the user is not logged in
  2. FB.ui({
  3.                     appId:  '"' + appId + '"',
  4.                     method: 'apprequests',
  5.                     display: 'iframe',
  6.                     message: '"' + message + '"',
  7.                     title: 'Send your friends an application request'
  8.                 },
  9.                 function (response) {
  10.                     if (response && response.request_ids) {
  11.                         FB.api(response.request_ids, 'delete');
  12.                     }
  13.                 });
  14.        
  15. <script>
  16. document.getElementById('send-to-many').onclick = function() {
  17.   FB.ui({
  18.     method: 'apprequests',
  19.     message: 'Visit my page'
  20.   }, Log.info.bind('send-to-many callback'));
  21. }
  22. </script>