mrinalblr / socialauth-android

Automatically exported from code.google.com/p/socialauth-android
0 stars 0 forks source link

[v3.2] FB Login - returns null UserProfile #163

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.on clean app, try to login with Facebook
2.the error only appears when login to facebook for *first time*
3.all worked till 9/4/2014!

What is the expected output? What do you see instead?
adapter.getUserProfile() is null

What version of the product are you using? On what operating system?
socialauth-android-3.2.jar / socialauth-4.4.jar

Please provide any additional information below.
thanks for all

Original issue reported on code.google.com by yotag...@gmail.com on 11 Apr 2014 at 8:04

GoogleCodeExporter commented 8 years ago
Hi can you please post the full stack trace.

Original comment by vineet.a...@3pillarglobal.com on 14 Apr 2014 at 6:53

GoogleCodeExporter commented 8 years ago
http://i.imgur.com/l28mbzW.png

keep in mind, when I close the application, and try to login again (already the 
session saved) I can read the user profile.

Original comment by yotag...@gmail.com on 14 Apr 2014 at 7:52

GoogleCodeExporter commented 8 years ago
usage :
http://pastebin.com/DkPZHMkn

Original comment by yotag...@gmail.com on 14 Apr 2014 at 8:02

GoogleCodeExporter commented 8 years ago
the log shows that the provider is already connected. Send me logs when you 
connect first time. 

Also let me know are you facing problems in your own app or in examples too.

Original comment by vineet.a...@3pillarglobal.com on 14 Apr 2014 at 8:08

GoogleCodeExporter commented 8 years ago
^yes this is the first time, after Facebook Login fragment appeared, you see 
that writes 'Profile details not received' ?

Original comment by yotag...@gmail.com on 14 Apr 2014 at 8:12

GoogleCodeExporter commented 8 years ago
on 'Custom UI' example, is able to login, then see user profile without 
problem, maybe the error occurs only at *onComplete* event ? The strange is 
that months now working (v3.0 + v3.1 + no tested on v3.2 till I posted the 
issue)

Original comment by yotag...@gmail.com on 14 Apr 2014 at 8:26

GoogleCodeExporter commented 8 years ago
also the socialauth-4.4.jar is different from v3.1 to v3.2
http://i.imgur.com/74Zsdht.png

I create a presentation, compare v3.1 and v3.2

https://www.firedrive.com/file/83332D56282B72F1

Original comment by yotag...@gmail.com on 17 Apr 2014 at 8:06

GoogleCodeExporter commented 8 years ago
Hi,

We have checked at our side. We are not able to reproduce the issue. The 
OnComplete event calls only after the library get the oauth token.

If the examples are working fine( as told by you)then library is working fine. 
I hope you follow the new guidelines :

https://code.google.com/p/socialauth-android/wiki/Facebook

I hope you are choosing Android instead of Web.

Original comment by vineet.a...@3pillarglobal.com on 21 Apr 2014 at 9:59

GoogleCodeExporter commented 8 years ago
^^also the 'oauth token' is filled, but *getUserProfile* returns null, we have 
one Facebook API, serve : 
-website callback (no tied with socialauth, is for website custom login)
-iOS 
-android

the *conflict* appears only at v3.2, is mysterious, I will return, with 
complete android example package. sorry for any confusion.

Original comment by yotag...@gmail.com on 22 Apr 2014 at 6:51

GoogleCodeExporter commented 8 years ago
Hi socialauth for android stops supporting custom web login from 3.2. please 
choose native android login.

should i close the issue ?

Original comment by vineetmo...@gmail.com on 23 Apr 2014 at 5:24

GoogleCodeExporter commented 8 years ago
Is like that, see our cpanel at facebook http://i.imgur.com/2X0NNgG.png , dont 
close it, today or tomorrow I will upload a sample PRJ, that illustrates the 
problem.

thanks

Original comment by yotag...@gmail.com on 23 Apr 2014 at 10:14

GoogleCodeExporter commented 8 years ago
sample application : 
http://www.firedrive.com/file/E4B772BF93B0D993
password : socialauth

1-
includes a debug.keystore, you have to change it 
eclipse > Window > Preferences > Android > Build > custom browse and select the 
included keystore *restart eclipse*

2-on first run verify that the signature is FFtQO0cEbOkGgUMVy7ORjSwiDOI= (press 
the button)

3-
press login (I created a temporary facebook app) is :
http://i.imgur.com/v45IgLd.png

here when press login for first time :
token is filled 
getUserProfile is null 

http://i.imgur.com/yziBrTn.png

when I close the application, and re open it, then press login, getUserProfile 
is filled!

Original comment by yotag...@gmail.com on 24 Apr 2014 at 7:49

GoogleCodeExporter commented 8 years ago
Hi,

Please let me know following things :

1. Is the custom-ui example running at your end with our keys.
2. Are you using native android login for your app.

Regards
Vineet

Original comment by vineetmo...@gmail.com on 24 Apr 2014 at 7:57

GoogleCodeExporter commented 8 years ago
oh my god, I spend 1h to do all these^^, please give a try...

1-
yes as I told you working

2-
what exactly make it 'native android login'

I call 
adapter.authorize(MainActivity.this, Provider.FACEBOOK);

and using the keys from facebook API aka 
http://i.imgur.com/v45IgLd.png

Original comment by yotag...@gmail.com on 24 Apr 2014 at 8:10

GoogleCodeExporter commented 8 years ago
Hi,

The screenshot shows you are using native android login. If examples are 
working then the issue is not related to socialauth-android. The only change 
from 3.2 and 3.1 is now socialauth android uses facebook native android flow 
instead of web flow.

Try to create new hash and then recheck.

Since the issue is not related to socialauth, we can't help.

Original comment by vineet.a...@3pillarglobal.com on 24 Apr 2014 at 8:40

GoogleCodeExporter commented 8 years ago

Original comment by vineet.a...@3pillarglobal.com on 24 Apr 2014 at 8:43

GoogleCodeExporter commented 8 years ago
ok thanks!

Original comment by yotag...@gmail.com on 24 Apr 2014 at 9:23

GoogleCodeExporter commented 8 years ago

Original comment by vineet.a...@3pillarglobal.com on 30 Apr 2014 at 5:52

GoogleCodeExporter commented 8 years ago
Exact same problem here . ... status invalid ??? 

Original comment by steven.v...@gmail.com on 24 Jun 2014 at 10:04

GoogleCodeExporter commented 8 years ago
Facing the same issue even on 'socialauth-android-3.2.jar' & 
'socialauth-4.7.jar'. Any updates on this?

Original comment by rupes...@zoftech.net on 19 Mar 2015 at 12:36