Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6122995
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:57:50+00:00 2026-05-23T15:57:50+00:00

I have a website with Facebook integration. The homepage has a few Like buttons,

  • 0

I have a website with Facebook integration. The homepage has a few Like buttons, which are popular, and a login button, which is not. I’d like to attach an event to the Like buttons which will make them de facto login buttons – that is, in addition to everything Facebook is doing, I want to take the opportunity to request extended permissions for my app.

It doesn’t work, and here’s what I know about why:

  1. I’m listening for clicks using the following call:
    FB.Event.subscribe(“edge.create”, function (obj) { /* my callback */ });
  2. The edge.create event is fired when Facebook FINISHES processing the click.
  3. Facebook processes the click asynchronously, deferring during completion of a request-response cycle.
  4. Javascript code executed after this async wait is not part of the same stack, and lacks the blessings conferred by the user action.
  5. The means that Facebook provides to request extended permissions involves creating a popup window, and most modern browsers include a popup blocker which rejects the call outside of a stack triggered by a user action.

This chain leads to the result that handlers fired on edge.create are unable to request extended permissions. I can think of two classes of solutions:

  1. Find a way to listen on the original click, rather than after Facebook receives the click, sends a request, receives a response, and finally fires the global handler
  2. Find an alternate UI for requesting permissions that doesn’t involve a popup

Nothing I’ve found in researching has shown me an easy way to do either of these. On solution 1, FBJS provides an addEventListener method, but as far as I can tell FBJS has nothing to do with my case (integration on a website that I own), so I can’t use that to catch the click. On solution 2, Facebook’s own documentation for FB.login says the following:

You should only call this on a user event as it opens a popup. Most browsers block popups, unless they were initiated from a user event, such as a click on a button or a link.

(Source: https://developers.facebook.com/docs/reference/javascript/FB.login/)

So I’m at a dead end, but it seems like a terribly artificial problem – does Facebook want me to be able to request permissions upon click of a Like button, or not? If so, what am I missing? If not, why are they implementing this restriction in the UI layer?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T15:57:51+00:00Added an answer on May 23, 2026 at 3:57 pm

    Facebook Like buttons exist inside of an <iframe>. As such there is no way for you to capture or intercept the button’s click event, or even to have a click event on the <iframe> itself as far as I can determine.

    Perhaps you could start the page out displaying your own buttons that look like Facebook Like buttons, and then you can handle clicks on those as normal. You could wire them so that on the first click they request permissions and then replace all your custom Like buttons with actual Like buttons.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have began developing a website which has facebook integration and it seems to
I have website display images, each image has its facebook-like button linked to its
I have a website that uses the Facebook like button. I am attempting to
I have a website which utilizes facebook integration. You can use it independently of
I have website where users can login with their Facebook account. I am using
I have a Facebook app which posts news from a company website to the
My facebook integration used to work but for a few days it is not
I have a website which i integrate with Facebook (via FBML - JavaScript API).
I have a website where I want to implement the facebook-login facility.. I went
I have a website which users can sign up to using Facebook Connect (with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.