Osclass Support Forums

Osclass plugin support => Free Osclass Plugins => Facebook Login Plugin => Topic started by: firesale on July 13, 2018, 01:15:11 PM

Title: How to Redirect to a Specific Page after FB Registration/Login
Post by: firesale on July 13, 2018, 01:15:11 PM
How to redirect to a specific page after FB Registration/Login?

It is currently set to the Homepage.
Title: Re: How to Redirect to a Specific Page after FB Registration/Login
Post by: MB Themes 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.
Title: Re: How to Redirect to a Specific Page after FB Registration/Login
Post by: firesale 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.
Title: Re: How to Redirect to a Specific Page after FB Registration/Login
Post by: firesale 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