Guest User

Untitled

a guest
Apr 16th, 2012
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  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>
Advertisement
Add Comment
Please, Sign In to add comment