*

firesale

  • **
  • 15 posts
How to redirect to a specific page after FB Registration/Login?

It is currently set to the Homepage.

Marked as best answer by firesale on July 13, 2018, 06:21:43 PM
*

MB Themes

Re: How to Redirect to a Specific Page after FB Registration/Login
« Reply #1 on: July 13, 2018, 02:59:09 PM »
@firesale
In file:
oc-content/plugins/facebook_login/functions.php

You may change:
Code: [Select]
header('Location: ' . osc_base_url());
osc_base_url() to whatever you want.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

firesale

  • **
  • 15 posts
Re: How to Redirect to a Specific Page after FB Registration/Login
« Reply #2 on: July 13, 2018, 06:53:43 PM »
@firesale
In file:
oc-content/plugins/facebook_login/functions.php

You may change:
Code: [Select]
header('Location: ' . osc_base_url());
osc_base_url() to whatever you want.

Thanks. It worked.

I first replaced all lines with it, total of 4. It worked but the Login button looked funny, like a CSS error. As it turns out I only need to replace one which corresponds to callback, which makes sense.

*

firesale

  • **
  • 15 posts
Re: How to Redirect to a Specific Page after FB Registration/Login
« Reply #3 on: July 13, 2018, 07:15:36 PM »
It might help somebody, look into the site if you want to achieve something similar:

Quote
https://doc.osclass.org/HDefines.php