Facebook JavaScript SDK: FB.ui opens a popup window

后端 未结 6 1500
深忆病人
深忆病人 2021-02-13 23:10

I am trying to show a \'Post to Your Wall\' feed dialog with the following code in a facebook iframe app:

6条回答
  •  我在风中等你
    2021-02-13 23:48

    Try this, put FB.ui inside FB.getLoginStatus:

    FB.getLoginStatus(function(response) {
      if (response.authResponse) {
        FB.ui({ 
          method: 'feed',
          ...
          display: 'dialog'       
        });  
      }
    }); 
    

提交回复
热议问题