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 8349029
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T07:52:08+00:00 2026-06-09T07:52:08+00:00

What I do is, I start by making a call with ajax to the

  • 0

What I do is,

I start by making a call with ajax to the controller/function “users/authenthicate”

This function get’s the loginurl from the sdk and returns it to javascript wich does the window.open.href… sofar sogood.. I get directed to the facebook loginpage,

but after a successvol login, it redirects back to the same users/authenticate.

QUESTION: is this the normal behaviour? or can I set the redirecturl..

QUESTION: it returns the url without a slash between the questionmark so the function is never recognized like this “users/authenthicate?bladeblibla”.

*I did set some url when I registred the application, but that was a completely different url
something like “http://www.domain/users/facebook_login”*

thanks Richard

  • 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-06-09T07:52:09+00:00Added an answer on June 9, 2026 at 7:52 am

    You can set the redirect URI as follows:

    $linkToOauthDialog = $this->facebook->getLoginUrl(
    
      array(
         'scope'         =>  SCOPE_OF_THE_APP,
         'redirect_uri'  =>  REDIRECT_URI
      )
    
    );
    

    You should also have in mind that Safari doesn’t allow setting third party cookies in an iframe, that’s why you need to redirect to your own domain first, where you set a cookie and redirect to facebook again. Otherwise you end up in an infinite loop.

    I have described this method in more detail here:
    Safari 3rd party cookie iframe trick no longer working?

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

Sidebar

Related Questions

Does anyone have a complete start-to-end set of steps taken when making an ajax
I am unable to start the Call activity. I get the following error: android.content.ActivityNotFoundException:
I have a function which makes an AJAX request to a server and returns
I am making a call to a REST API and I get back a
am making an ajax call to retrive json data i then store the retrived
I've rewritten my family web site using JavaScript (JQuery) making Ajax calls to PHP
I would like to start making code patches to Rails. Are there any good
I have a bizarre problem at the moment, I am just making a start
I am making an application which will run automatically on phone start up. Now
I start GVIM in not-maximized window mode and split its window horizontally making sure

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.