A
A
Alex2015-09-21 13:31:44
JavaScript
Alex, 2015-09-21 13:31:44

How to force FB.ui to open new windows?

Here is an example site - sharebutton.co .
If you run the following code in the console:

FB.ui({
  method:'feed',
  link: 'http://sharebutton.co/'
});

A new browser window opens with a link of the form
https://www.facebook.com/dialog/feed?app_id=...
b66e9279c4ab411a8854d44ab39bd5fd.png

However, if the same command is executed on my site, then popup does not appear, but a new window #fb-root
504a456f608e40969e8aed28168f049c.png

. How can I make the method FB.ui()always open a new window?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question