This topic has 13 replies, 4 voices, and was last updated 9 years by Andrei.

  • Author
  • #47175
     mrchristophee
    Participant

    How can I amend the Facebook login to redirect to the profile page and not remain on the homepage?

    #47264
     Radu
    Moderator

    Hello,

    The facebook login redirects by default to homepage, if you want to modify and extend this functionality, you find the file here : wp-content/themes/kleo/kleo-framework/lib/function-facebook-login.php

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #48256
     mrchristophee
    Participant

    how do you get it to go to the profile though? what is the code?

    #48358
     Radu
    Moderator

    Hello,

    You need to go in your kleo-child directory then make a folder named, kleo-framework, then inside kleo-framework folder, create a folder named lib, here you need to unrar and upload this file ( see attachment )

    the path for the file must be like this : /wp-content/themes/kleo-child/kleo-framework/lib/function-facebook-login.php

    Cheers

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    Attachments:
    You must be logged in to view attached files.
    #48434
     mrchristophee
    Participant

    hi its still loading to the home page?

    #48551
     Radu
    Moderator

    Hello,

    NO,

    Will redirect you to your profile.

    If dosen’t work put that file here : /wp-content/themes/kleo/kleo-framework/lib/function-facebook-login.php

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #48741
     mrchristophee
    Participant

    hi have done that and returns a 404 error page not found?

    #48761
     Radu
    Moderator

    Hello,

    NO,

    This modification will work in this way : after you will login with facebook in few seconds you will be redirected to buddypress profile to complete all empty fields.

    This is tested on my side and it works. ( latest version of kleo )

    Try to disable plugins that not commed with the theme.

    It should work in your side

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #48988
     mrchristophee
    Participant

    hi these are the only plugins that are now active. I believe these are the basic ones.

    It is still logging in but showing null page.

    i have the php file in both kleo and kleo child

    Attachments:
    You must be logged in to view attached files.
    #48992
     Radu
    Moderator

    Hello,

    I need to look closer,

    I need admin credentials

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #49010
     Abracadabra
    Participant

    Hello, I also have an issue with this.
    When it they first register through facebook, yes they get redirected to profile to fill out all the fields, but the issue is once they are already logged in. It says you are already logged in and you see the homepage, right now even myself I have to put admin after slash to get into my profile, and this one is not a facebook register one, so enabling facebook login screws up all registered profiles.
    Also, I noticed that a profile registered through facebook does not see any public groups, which other profiles registered normally do see.
    Thanks

    #49539
     Andrei
    Moderator

    @mrchristophee, radu shared the file where you need to make edits to change your fb register/login redirects, but please note that you’ll need a few programming skills to understand and edit the file correctly


    @arystokrata
    , you are right about the facebook related redirects and in one of our next update we’ll fix this by adding an option directly in our theme panel from where you could edit the redirect url

    Cheers

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #49550
     Abracadabra
    Participant

    Will it also be possible to import more than 1 photo?
    Typically when you log in with FB it allows you to pick pictures which you have saved as your profile photos.

    #49967
     Andrei
    Moderator

    Unfortunately for the moment I don’t see such an option coming, but who knows in the future.
    Cheers

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 14 posts - 1 through 14 (of 14 total)

The forum ‘KLEO’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?