Facebook connect displaying invite friends dialog and closing on completion

前端 未结 5 1638
灰色年华
灰色年华 2020-12-24 09:26

I\'m trying to create a Facebook Connect application that displays a friend invite dialog within the page using Facebook\'s Javascript API (through a FBMLPopupDialog).

5条回答
  •  不知归路
    2020-12-24 10:12

    This is how I solved it

    My JS/FBML (note the target="_self" attribute for the multi-friend-selector):

     var inviteDialog;    // Keep a reference for the popup dialog
    
     function makeInviteForm() {
    
      // Set up request form elements here
    
      var fbml = '';
      fbml += '';
      fbml += '   ';
      fbml += '       ';
      fbml += '   ';
      fbml += '';
    
      inviteDialog = new FB.UI.FBMLPopupDialog(title, fbml);
    
     }
    

    My PHP:

     
     
    

提交回复
热议问题