Advertisement:

Author Topic: Facebook login  (Read 2389 times)

arcsales

  • Full Member
  • ***
  • Posts: 192
Facebook login
« on: February 09, 2016, 09:45:49 am »
Did anyone tested the facebook login on 3.6.1 ?
I've try but in chrome is loading white empty page and in mozilla "The page isn't redirecting properly"
It redirect me to http://mywebsite.com/user/login?code=AQCSI_zeo5P4ndtDvUHYc018jAhcZBSeRRqMvCLV7i3hX8d0405ambmJU2q_cqNW6qm5rIe1zk1uZZr6RtZaVVQvBlLEbu-GOmDiL3lYimi4ykuGl4egi4b-ms_iJsRLUl3tRb86xKRiDt5LHykc7JNhkMX_016oLvIdM7i-7idPnexyrmha9fUfLKjiiuk9oMnFuXZMAthMKRgUu_ay_y3EAfMZ-4lceVOoHzA92Fgy8QRYghyveDO_CAYs7O6GjO6WNiMmB69goiP9WPL4mVs9bXP2eq7uNLwhe1avWXYhq8uocc87NLnrlTi_-56iSs9d3udbZWFpvgaXeC7f3_Hx&state=d3bdf5ca92496606846745b44f31e66a#_=_

Also the cookie set is being bugged so you have to clean cookies before you can do anything else.

Anyone else having this issue?

P.S.
After you hit "Login using Facebook" there is not new user created.
Also since this website is new and i already have an other one where all works fine... i've noticed that my latest facebook app is using v2.5 API and the previews is using v2.3
« Last Edit: February 09, 2016, 10:17:18 am by arcsales »

arcsales

  • Full Member
  • ***
  • Posts: 192
Re: Facebook login
« Reply #1 on: February 19, 2016, 10:59:42 am »
Is there anyone else having problem with Facebook login or is just me?
Im using osclasswizard theme.

swifteagle

  • Newbie
  • *
  • Posts: 35
Re: Facebook login
« Reply #2 on: February 20, 2016, 03:30:39 pm »
Doesnt work for me either. :(

ayman83

  • Jr. Member
  • **
  • Posts: 82
Re: Facebook login
« Reply #3 on: February 21, 2016, 03:33:50 am »
I have this Issue too , any help plz ?

pecke

  • Full Member
  • ***
  • Posts: 169
Re: Facebook login
« Reply #4 on: February 26, 2016, 02:10:29 am »
Okay i try to help first send me link where you put face login button to see whats happen.

arcsales

  • Full Member
  • ***
  • Posts: 192
Re: Facebook login
« Reply #5 on: February 26, 2016, 03:40:25 am »
Okay i try to help first send me link where you put face login button to see whats happen.

dir/oc-content/themes/osclasswizards/user-login.php on line 65
http://www.jobstwister.com/login

pecke

  • Full Member
  • ***
  • Posts: 169
Re: Facebook login
« Reply #6 on: February 26, 2016, 04:06:15 am »
ok you didnt set app correctly
go to facebook app for your site and in settings tab click advanced and set login url pages like i did

http://prntscr.com/a803gl

You must add only two pages register url and login url and put login button only in this 2 pages

And check did you set url after login in file user-login.php

Code: [Select]
<?php 
    
if($_GET["state"]!=''){
   
header('Location: /index.php?page=user&action=dashboard' );
   }
   
?>
« Last Edit: February 26, 2016, 04:33:47 am by pecke »

arcsales

  • Full Member
  • ***
  • Posts: 192
Re: Facebook login
« Reply #7 on: February 28, 2016, 12:48:02 am »
I think is about to work thanks to your advice.
Where I have to add the code?
Below footer function, tags etc.?

Here is the code after facebook button call function
Code: [Select]
<div class="form-group">
          <div class="controls">
            <button type="submit" class="btn btn-success">
            <?php _e("Create An Account"OSCLASSWIZARDS_THEME_FOLDER); ?>
            </button>
          </div>
        </div>
      </form>
    </div>
  </div>
  </div>
<?php UserForm::js_validation(); ?>
<?php osc_current_web_theme_path('footer.php') ; ?>

pecke

  • Full Member
  • ***
  • Posts: 169
Re: Facebook login
« Reply #8 on: February 28, 2016, 05:55:04 am »
like this

Code: [Select]
<?php 
    
if($_GET["state"]!=''){
   
header('Location: /index.php?page=user&action=dashboard' );
   }
   
?>

<div class="form-group">
          <div class="controls">
            <button type="submit" class="btn btn-success">
            <?php _e("Create An Account"OSCLASSWIZARDS_THEME_FOLDER); ?>
            </button>
          </div>
        </div>
      </form>
    </div>
  </div>
  </div>
<?php UserForm::js_validation(); ?>
<?php osc_current_web_theme_path('footer.php') ; ?>

arcsales

  • Full Member
  • ***
  • Posts: 192
Re: Facebook login
« Reply #9 on: February 28, 2016, 01:13:11 pm »
Same problem.
Here is what mozilla says:
The page isn't redirecting properly
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
This problem can sometimes be caused by disabling or refusing to accept cookies.


I have other website and the app there have only the main url as redirect aoth http://www.mywebsite.com/ and that is all.
It is working perfectly fine but i am using theme which was created to work with fb connect.

So i guess there is something missing from the wizz theme but i dont know what.

pecke

  • Full Member
  • ***
  • Posts: 169
Re: Facebook login
« Reply #10 on: February 28, 2016, 04:43:20 pm »
maybe your theme have some integrated redirect,you can see in my site http://www.pcbuvljak.com how that work. I dont use facebook options in my theme only developers code

arcsales

  • Full Member
  • ***
  • Posts: 192
Re: Facebook login
« Reply #11 on: February 28, 2016, 05:26:33 pm »
Yes its working.
Is that osclasswizards theme? Im asking because they have similar but for real estates and might be diff there.
Can you send me screenshots from your app settings?
Hide your details but leave the important once please.
If you want send them on private message.

You miss one translation "Your account has been created successfully".

pecke

  • Full Member
  • ***
  • Posts: 169
Re: Facebook login
« Reply #12 on: February 28, 2016, 07:22:15 pm »

arcsales

  • Full Member
  • ***
  • Posts: 192
Re: Facebook login
« Reply #13 on: February 28, 2016, 08:26:44 pm »
Thanks a lot!

I made the settings like yours but im still unable to login or register.
Its not even taking me to facebook page for approval.
I still think is because of the latest facebook API Version v2.5
The other site where is all fine and working is using API Version v2.3

pecke

  • Full Member
  • ***
  • Posts: 169
Re: Facebook login
« Reply #14 on: February 28, 2016, 08:29:02 pm »
I can send you my plugin to you if you want to try....   sorry forum rules dont allow sending plugins
« Last Edit: February 29, 2016, 03:35:27 pm by pecke »