# Facebook Connect popup blocked by some navigators : how to fix it?

**URL:** <https://forum.kirupa.com/t/facebook-connect-popup-blocked-by-some-navigators-how-to-fix-it/322857>\
**Category:** Uncategorized\
**Created:** [June 6, 2011, 2:11pm UTC](https://forum.kirupa.com/t/facebook-connect-popup-blocked-by-some-navigators-how-to-fix-it/322857 "2011-06-06T14:11:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![grosbouff](https://avatars.discourse-cdn.com/v4/letter/g/7c8e57/32.png) [@grosbouff](https://forum.kirupa.com/u/grosbouff)\
**Post date:** [June 6, 2011, 2:11pm UTC](https://forum.kirupa.com/t/facebook-connect-popup-blocked-by-some-navigators-how-to-fix-it/322857/1 "2011-06-06T14:11:07Z")

</div>

Hi guys !  
I made a websites which needs the user to login to Facebook.  
It uses the facebook API to check if the user is logged or not; and the API opens a popup if he is not logged.

```auto

import com.facebook.graph.Facebook;
import com.facebook.graph.data.FacebookSession;
import com.facebook.graph.net.FacebookRequest;

...

Facebook.init(APP_ID, FBDidInit);

....

Facebook.login(FBfinishedLogin, {perms:"publish_stream,user_location"});

```

The problem is that with some of the browsers (eg. Safari); the popup is blocked.  
It is the API and not my code which launches the popup so I have no control on it.

Any idea of workaround ?

Thanks !
