Advertisement:

Author Topic: facebook connect username is a number  (Read 1354 times)

ozarkprime

  • Newbie
  • *
  • Posts: 23
facebook connect username is a number
« on: June 15, 2014, 11:56:54 pm »
All other aspects of the facebook connect is working just fine, however it creates the username as a number and I am wondering if anyone else has had that problem and knows a solution

Code: [Select]
if(osc_version()>=310) {
                    $manager->update( array('b_active' => '1', 's_username' => $userID)
                                    ,array('pk_i_id' => $userID) );
                } else {
                        $manager->update( array('b_active' => '1')
                            ,array('pk_i_id' => $userID) );
                }

seems to be the above code doing this on the facebook connect, I was just curious why you are setting the username as the user id?

« Last Edit: June 16, 2014, 12:01:25 am by ozarkprime »

frosticek

  • Hero Member
  • *****
  • Posts: 3948
Re: facebook connect username is a number
« Reply #1 on: June 16, 2014, 10:26:39 am »
@ozarkprime
Looks yes, maybe it was meant as some kind of protection if user name / surname could not be get from facebook... ;)

ozarkprime

  • Newbie
  • *
  • Posts: 23
Re: facebook connect username is a number
« Reply #2 on: June 16, 2014, 07:33:26 pm »
Couldn't you just isset and then provide an alternative?

frosticek

  • Hero Member
  • *****
  • Posts: 3948
Re: facebook connect username is a number
« Reply #3 on: June 17, 2014, 02:24:35 pm »
@ozarkprime
You can test that, but thinking, where is used username in front-office, it is used on listing site?
Username is never used...