Login   Register  
PHP Classes
elePHPant
Icontem

Linked oauth Problem

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      PHP OAuth API  >  All threads  >  Linked oauth Problem  >  (Un) Subscribe thread alerts  
Subject:Linked oauth Problem
Summary:Linked oauth Trying to get property of non-object
Messages:5
Author:Thanos
Date:2013-01-09 01:19:02
Update:2013-02-06 16:34:00
 

  1. Linked oauth Problem   Reply  
Picture of Thanos
Thanos
2013-01-09 01:19:02
Thanks for developing and sharing this class Manuel.

I want to use the FB and LinkedIN oauth for the users to be able to register in my website through their accounts.

Although with login_with_facebook.php everything works fine, the login_with_linkedin.php gives me a notice (Trying to get property of non-object) at the following line:

echo '<h1>1', HtmlSpecialChars($user-> firstName),

Do you have any suggestion on how I could solve this problem in order get the first name of the user?

  2. Re: Linked oauth Problem   Reply  
Picture of Manuel Lemos
Manuel Lemos
2013-01-09 11:45:14 - In reply to message 1 from Thanos
That means that the request was and and the response was received but there was some kind of error and so the server did not send the response you expect.

Take a look at the authorization_error and access_token_error variables to see what happened.

  3. Re: Linked oauth Problem   Reply  
Picture of Arno Buizer
Arno Buizer
2013-01-26 18:20:40 - In reply to message 2 from Manuel Lemos
this issue is discussed here: http://www.phpclasses.org/discuss/package/7700/thread/22/

you got an xml object return, which was not properly handled by the package and the example. Manual Lemos fixed it and I was able to implement it together with support for FB, Google, Twitter. The only thing is that LinkedIn returns other fields( names are different) than FB, Google, Twitter do with this package.

  4. Re: Linked oauth Problem   Reply  
Picture of Thanos
Thanos
2013-02-06 16:33:29 - In reply to message 3 from Arno Buizer
You are right. Thank you Arno:)

  5. Re: Linked oauth Problem   Reply  
Picture of Thanos
Thanos
2013-02-06 16:34:00 - In reply to message 2 from Manuel Lemos
Thanks for your time:)