The FB.ui dialog appears at the top of the page, rather than being centered at the current scroll position.

The FB.ui dialog appears at the top of the page, rather than being centered at the current scroll position.

  • User scrolls to page
  • Clicks share Dialog
  • FB.ui appears at the top of the page (the person does not see it)

The code is as simple as:

 FB.ui({ method: 'feed', link: 'http://[..].com/app/' + app_id, }); 

Do I need / can I call any method to adjust the position of the dialog item?

Note that the content is added dynamically to the page, so it may be that the FB script does not know what the current window size is.

+4
source share

Source: https://habr.com/ru/post/1412215/


All Articles