T
T
T4-1002014-10-29 15:43:49
Facebook
T4-100, 2014-10-29 15:43:49

How to solve popup blocking problem in facebook js sdk?

After switching from connect.facebook.net/en_US/all.js to connect.facebook.net/en_US/sdk.js, there was a problem with authorization - the browser blocks the pop-up window. I found this information in the documentation

Calling FB.login results in the JS SDK attempting to open a popup window. As such, this method should only be called after a user click event, otherwise the popup window will be blocked by most browsers.

But the fact is that I have a button with a class after clicking, on which I call FB.login and the window is still blocked.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
Z
Zohei, 2014-10-29
@Zohei

show code

S
Sergey Goryachev, 2016-12-23
@webirus

Map area

N
Nikita Kit, 2016-12-23
@ShadowOfCasper

Here, there are probably no ready-made solutions.
The best option is to make the map in svg. Layers are also there to make - each country is a separate path. pinky, probably also in svg. The hover magnifier is a javascript zoom with clip mask image css. In general, not the fastest and simplest thing.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question