Facebook connect displaying invite friends dialog and closing on completion

前端 未结 5 1635
灰色年华
灰色年华 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 09:49

    I found that if you specify target="_self" in the request-form element (not in the friend selector, as Domenic suggests), the response url will load in the iframe, and not reload the whole page.

    Thus, you could load your own prompt to close the window at this point, or with a little bit more work send a message to the parent to close the whole iframe automatically.

提交回复
热议问题