Yii Framework Forum: How To Fectch Google First Name And Email Into Database - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How To Fectch Google First Name And Email Into Database Rate Topic: -----

#1 User is offline   Devendra411 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 151
  • Joined: 09-April 13
  • Location:Bangalore

Posted 30 April 2013 - 10:10 PM

Hi, i'm new ti yii. I'm doing my project in using yii, i want to login with facebook and google to my website. I done this module, but, i didn't get facebook or goolge firstname or emails are nothing added into mydatabase. Can i know how to get these into my database.

Thanks in advance.
0

#2 User is offline   Devendra411 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 151
  • Joined: 09-April 13
  • Location:Bangalore

Posted 30 April 2013 - 10:53 PM

When i login with google it saying like this....

exception 'CHttpException' with message 'Unable to resolve the request "google?state=be831c7ad7cbc5044a0ded6dfa15bc57fc42bb9a".' in /var/www/skeleton/yii/web/CWebApplication.php:286
Stack trace:
#0 /var/www/skeleton/yii/web/CWebApplication.php(141): CWebApplication->runController('google?state=be...')
#1 /var/www/skeleton/yii/base/CApplication.php(169): CWebApplication->processRequest()
#2 /var/www/skeleton/index.php(18): CApplication->run()
#3 {main}.
REQUEST_URI=/personalTrainer/index.php?r=google?state=9427ee176b306e807ec29a76a49b2799c0a4ecdf&gplus_id=107808468198894033389
HTTP_REFERER=http://localhost/personalTrainer/index.php?r=site/login

pls help me how to solve this problem.
0

#3 User is offline   Fabrizio Caldarelli 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 557
  • Joined: 21-March 13
  • Location:Rome, Italy

Posted 02 May 2013 - 02:28 AM

You are linking "google" page in incorrect mode.

You have to link always controller/action. "google" is controller or action?

In either way, you are missing controller or action.
0

#4 User is offline   waterloomatt 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 545
  • Joined: 09-April 10

Posted 02 May 2013 - 07:08 AM

What extensions are you using? I've had a good experience using these 2 in conjunction

Also, correct me if I'm wrong, but Facebook isn't an OpenId provider. They use their own authentication system called Facebook Connect. This extension might help.

Matt
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users