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

  • Home
  • SEARCH
  • 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 640003
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T20:54:18+00:00 2026-05-13T20:54:18+00:00

<fb:login-button onlogin=window.location = ‘/custompage.html’;>Connect</fb:login-button> That’s currently my code for users to log in to

  • 0
<fb:login-button onlogin="window.location = '/custompage.html';">Connect</fb:login-button>

That’s currently my code for users to log in to my site. It’s in FBML.

It will pop up a box, the user then logs in. And then, it closes the new window, followed by a redirect to “custompage.html“.

Now, I would like to manually render my button instead of using FBML, because it’s too slow on mobile” http://wiki.developers.facebook.com/index.php/Facebook_Connect_Login_Buttons#Facebook_Connect_for_iPhone_Buttons

How do I close the popup window and redirect, using this code as explained in the doc?:

<a href="" onclick="FB.Connect.requireSession();return false;"><img src="http://wiki.developers.facebook.com/images/6/6f/Connect_iphone.png"></a>
  • 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-13T20:54:18+00:00Added an answer on May 13, 2026 at 8:54 pm

    The code you want run on successful login should be passed as an argument to requireSession(). In your case, I believe you want

    <a href="" onclick="FB.Connect.requireSession(function () {
        window.location = '/custompage.html'
      });return false;">
      <img src="http://wiki.developers.facebook.com/images/6/6f/Connect_iphone.png">
    </a>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a facebook connect button on this site here is the code <fb:login-button
so i have this facebook login button: <fb:login-button autologoutlink=true onlogin=Log.info('onlogin callback')> </fb:login-button> but then
I want to design a webpage login that when click on the login button
User clicks on Login with facebook button, a popup is window dialog box is
I am using the facebook connect to login into my website. In my html
<fb:login-button autologoutlink=false size=medium v=1 onlogin= show-faces=false width=200 max-rows=1 perms=user_birthday,user_photos,user_videos,email,read_friendlists,read_stream,publish_stream> <a class=fb_button fb_button_medium> <span class=fb_button_text>Log
I have a Login button that I want to be disabled until 3 text
This is how i normally specify a redirect url in fbml f-connect tag <fb:login-button
I have a login button in wpf login form. I want that user has
When 'login' button is clicked I would like to iterate through a column in

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.