farhan678 / socialauth-android

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

Auth with facebook is not working anymore #52

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download socialauth-android-sdk-2.0.zip
2. Import any of the test projects
3. Try to login using facebook

What is the expected output? What do you see instead?
It suppose to get the "Authentication Successful" log from the ResponseListener 
but what i get is the following exception:

04-12 21:07:46.510: W/System.err(7078): 
org.brickred.socialauth.exception.SocialAuthException: Verification code is null
04-12 21:07:46.510: W/System.err(7078):     at 
org.brickred.socialauth.oauthstrategy.OAuth2.verifyResponse(OAuth2.java:114)
04-12 21:07:46.510: W/System.err(7078):     at 
org.brickred.socialauth.oauthstrategy.OAuth2.verifyResponse(OAuth2.java:102)
04-12 21:07:46.510: W/System.err(7078):     at 
org.brickred.socialauth.provider.FacebookImpl.doVerifyResponse(FacebookImpl.java
:164)
04-12 21:07:46.510: W/System.err(7078):     at 
org.brickred.socialauth.provider.FacebookImpl.verifyResponse(FacebookImpl.java:1
54)
04-12 21:07:46.510: W/System.err(7078):     at 
org.brickred.socialauth.SocialAuthManager.connect(SocialAuthManager.java:183)
04-12 21:07:46.510: W/System.err(7078):     at 
org.brickred.socialauth.android.SocialAuthDialog$SocialAuthWebViewClient$1.run(S
ocialAuthDialog.java:244)
04-12 21:07:46.510: W/System.err(7078):     at 
java.lang.Thread.run(Thread.java:856)
04-12 21:07:46.510: W/InputMethodManagerService(519): Window already focused, 
ignoring focus gain of: 
com.android.internal.view.IInputMethodClient$Stub$Proxy@420ef600 
attribute=android.view.inputmethod.EditorInfo@4206f4a0, token = 
android.os.BinderProxy@41ff3268
04-12 21:07:46.520: D/SocialAuthError(7078): 
org.brickred.socialauth.exception.SocialAuthException: Verification code is null
04-12 21:07:46.520: W/System.err(7078): 
org.brickred.socialauth.android.SocialAuthError: Unknown Error
04-12 21:07:46.520: W/System.err(7078):     at 
org.brickred.socialauth.android.SocialAuthDialog$SocialAuthWebViewClient$1.run(S
ocialAuthDialog.java:264)
04-12 21:07:46.520: W/System.err(7078):     at 
java.lang.Thread.run(Thread.java:856)
04-12 21:07:46.520: D/LifeView(7078): Unknown Error

What version of the product are you using? On what operating system?
I'm using the socialauth-android-sdk-2.0 and this behavior was present testing 
with an Android 4.2.2 and Android 2.3.3 devices.

Please provide any additional information below.
I test 1 week ago with exactly the same code and now it's not working.

Original issue reported on code.google.com by victor.c...@gmail.com on 12 Apr 2013 at 7:10

GoogleCodeExporter commented 9 years ago
I got the same error today with two different devices. The authentication  
keeps faling...

Original comment by dharm82...@gmail.com on 13 Apr 2013 at 6:50

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hi , we have checked number of times with different keys but facebook is 
working fine.

Please let us know are you still facing the issue ? 

Original comment by vineet.a...@3pillarglobal.com on 14 Apr 2013 at 5:07

GoogleCodeExporter commented 9 years ago
Have the same issue. I test my APP 10 of April and works fine. Today get the 
error "Verefication code is null".
I download the examples "share-button" and "share-bar" and I have the same 
problem with Facebook.

Original comment by francisc...@gmail.com on 16 Apr 2013 at 9:06

GoogleCodeExporter commented 9 years ago
In the log I get this:
04-16 11:20:53.530: D/SocialAuth-WebView(17922): Override url: 
fbconnect://success#access_token=BAAHJpLUSchsBAIrBSL0E1z3pQVMtCz7lp86TMygUgnSSjy
a7nd5w05pSFcuebxsmFPndjoCz6z56pkLMG2FbFBlahBlahBlah&expires_in=5180716

I dont know, but the parameter change from "code" to "acces_token"

Original comment by francisc...@gmail.com on 16 Apr 2013 at 9:27

GoogleCodeExporter commented 9 years ago
I am too facing the same issue. Did anyone get a solution?

Original comment by bhargavs...@gmail.com on 17 Apr 2013 at 7:11

GoogleCodeExporter commented 9 years ago
I have the same problem.
I have posted a question on stack overflow too but no answer yet. 
http://stackoverflow.com/questions/15986651/socialauth-android-authorization-suc
cessfull-with-facebook-but-verification-code

Original comment by renato.d...@gmail.com on 17 Apr 2013 at 7:55

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I am too facing the same issue.Please let us know the solution

Original comment by vinaydre...@gmail.com on 18 Apr 2013 at 5:29

GoogleCodeExporter commented 9 years ago
Hi ,

We are looking to provide a solution today. Thanks for patience.

Original comment by vineet.a...@3pillarglobal.com on 18 Apr 2013 at 6:38

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Same with me.... waiting for a fix. Good luck

Original comment by javier.r...@gmail.com on 18 Apr 2013 at 3:31

GoogleCodeExporter commented 9 years ago
Eagerly waiting for the solution? Shall I know the status?

Original comment by bhargavs...@gmail.com on 18 Apr 2013 at 5:24

GoogleCodeExporter commented 9 years ago
Same here!

Original comment by raf...@telethrive.com on 19 Apr 2013 at 12:33

GoogleCodeExporter commented 9 years ago
I have the same error! Can't use facebook. Tested on socialauth-android-sdk-2.1.

Original comment by chistovskis on 21 Apr 2013 at 4:55

GoogleCodeExporter commented 9 years ago
Hi , Please find a zip file with new jars to test. 

Facebook has done api changes and we are following it. Please note that its is 
not a final jar. After login , you will get a screen " you are already 
authorized" , then pressing ok , you will be connected.

Original comment by vineet.a...@3pillarglobal.com on 22 Apr 2013 at 5:12

Attachments:

GoogleCodeExporter commented 9 years ago
I can confirm the new jars posted here works. Thanks guys!

Original comment by gilosmic...@gmail.com on 22 Apr 2013 at 5:43

GoogleCodeExporter commented 9 years ago
I can also confirm. It's possible to use facebook again. Thanks!

Original comment by chistovskis on 22 Apr 2013 at 6:05

GoogleCodeExporter commented 9 years ago
I have confirmed that now the authentication is working but i have tried again 
with the share-button project in order to send a post to facebook and i 
received the following error:

04-22 10:13:25.919: I/FacebookImpl(6172): Updating status : test!!! 123
04-22 10:13:26.019: D/overlay(158): Unset pipe=VG0 dpy=0; Unset pipe=VG1 dpy=0; 
Unset pipe=RGB1 dpy=0; 
04-22 10:13:26.639: D/SocialAuthError(6172): 
org.brickred.socialauth.exception.SocialAuthException: 
org.brickred.socialauth.exception.SocialAuthException: Status not updated. 
Return Status code :400
04-22 10:13:26.639: D/ShareButton(6172): Authentication Error: Message Not 
Posted

Original comment by victor.c...@gmail.com on 22 Apr 2013 at 8:16

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hi....
     Mr, i done fb posting ,but on twitter i hav problems.. i attached screen shot below,,after login twitter page is on front,,,i m not getting "Twitter  Connected" msg,i m tried so...bt no one is working...
i hope u,,giv sol to me.. thank you..

Original comment by a.an...@quadrupleindia.com on 22 Apr 2013 at 12:40

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
 jars.rar 
 214 KB   Download 
Yes Its really working with new Jars, I was trying since morning, Its Done,  
Thanks a lot :) Good Work.

Original comment by khurram....@gmail.com on 22 Apr 2013 at 1:36

GoogleCodeExporter commented 9 years ago
Good job! 
When do you expect to relase the code of this fix?

Thanks

Original comment by javier.r...@gmail.com on 23 Apr 2013 at 2:22

GoogleCodeExporter commented 9 years ago
Thanks..
This work fine..Thanks a lott..

Original comment by ansh...@gmail.com on 24 Apr 2013 at 5:07

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hello vineet... your answer is perfect ... thanks alot....:)

Original comment by ishas...@gmail.com on 24 Apr 2013 at 12:40

GoogleCodeExporter commented 9 years ago
It works fine on new androids, but :)
It has stopped working on android 2.2, I am having exception:

java.lang.NoSuchMethodError: javax.net.ssl.SSLContext.setDefault

If I remember correctly this issue was patched with this code submition one 
month ago: https://code.google.com/p/socialauth/issues/detail?id=252

Can you please upload source code or apply same patch again ?

Original comment by slobodan...@gmail.com on 24 Apr 2013 at 1:11

GoogleCodeExporter commented 9 years ago
hi victor, it seems you are trying to post message with special characters. we 
need to check.please open a new issue if unresolved

hi anand , i need to check. i think the issue should not be there. please open 
a new issue wuth full stack trace

javier , the office release would be after may 20.

slobodan , thanks will check this.

Original comment by vineet.a...@3pillarglobal.com on 25 Apr 2013 at 9:34

GoogleCodeExporter commented 9 years ago
Thanks a lot @17 vineet.a...@3pillarglobal.com.............You saved my whole 
day.......
:)

Original comment by sufalamt...@gmail.com on 26 Apr 2013 at 12:12

GoogleCodeExporter commented 9 years ago
after using jars...i m facing the problem in facebook,You have already 
authorized yourapp, verification code is null.... please tell me the 
solution...i  am sending u my code.. please find the attachment n reply me 
ASAP....thanx alot in advance...

Original comment by khushbu....@gmail.com on 30 Apr 2013 at 12:23

GoogleCodeExporter commented 9 years ago

Original comment by khushbu....@gmail.com on 30 Apr 2013 at 12:23

Attachments:

GoogleCodeExporter commented 9 years ago
I am using the 2.1 jar files and still having this problem with share-bar. 
org.brickred.socialauth.exception.SocialAuthException: Verification code is null

Original comment by gen3soft...@gmail.com on 8 May 2013 at 4:15

Attachments:

GoogleCodeExporter commented 9 years ago
Hi,

I am able to post to linkedin fine but twitter and facebook fails.

Twitter Error I get as below:
-----------------------------
05-10 16:06:38.630: I/SocialAuthManager(10061): Connecting provider : twitter
05-10 16:06:38.630: I/TwitterImpl(10061): Verifying the authentication response 
from provider
05-10 16:06:38.630: I/OAuth1(10061): Verifying the authentication response from 
provider
05-10 16:06:41.080: W/System.err(10061): 
org.brickred.socialauth.exception.SocialAuthException: Unable to retrieve the 
access token. Status: 401
05-10 16:06:41.080: W/System.err(10061):    at 
org.brickred.socialauth.util.OAuthConsumer.getAccessToken(OAuthConsumer.java:269
)
05-10 16:06:41.080: W/System.err(10061):    at 
org.brickred.socialauth.oauthstrategy.OAuth1.verifyResponse(OAuth1.java:97)
05-10 16:06:41.080: W/System.err(10061):    at 
org.brickred.socialauth.oauthstrategy.OAuth1.verifyResponse(OAuth1.java:107)
05-10 16:06:41.080: W/System.err(10061):    at 
org.brickred.socialauth.provider.TwitterImpl.doVerifyResponse(TwitterImpl.java:1
67)
05-10 16:06:41.080: W/System.err(10061):    at 
org.brickred.socialauth.provider.TwitterImpl.verifyResponse(TwitterImpl.java:158
)
05-10 16:06:41.080: W/System.err(10061):    at 
org.brickred.socialauth.SocialAuthManager.connect(SocialAuthManager.java:183)
05-10 16:06:41.080: W/System.err(10061):    at 
org.brickred.socialauth.android.SocialAuthDialog$SocialAuthWebViewClient$1.run(S
ocialAuthDialog.java:243)
05-10 16:06:41.080: W/System.err(10061):    at 
java.lang.Thread.run(Thread.java:856)
05-10 16:06:41.080: D/SocialAuthError(10061): 
org.brickred.socialauth.exception.SocialAuthException: Unable to retrieve the 
access token. Status: 401

Facebook Exception as below:
----------------------------
05-10 16:02:12.460: D/SocialAuth-WebView(10061): 
onPageStart:https://m.facebook.com/dialog/oauth/write
05-10 16:02:13.070: D/SocialAuth-WebView(10061): Override url: 
fbconnect://success#access_token=CAAHdPiWKMJkBADClqSrGob9gCz1hPgQXXZC9RB3wVfT5J9
qNI0ZADZAjfsAzdfBH9pAYZCK5kClG7o9wH3HAIZC6rtJdiSZCT0YZBaJiiFr65cLThQX88s2zi7Y16Z
CqcFGjPNhrcpLfqQIC37nYl1LC&expires_in=5182194
05-10 16:02:13.090: I/SocialAuthManager(10061): Connecting provider : facebook
05-10 16:02:13.090: I/FacebookImpl(10061): Retrieving Access Token in verify 
response function
05-10 16:02:13.090: I/OAuth2(10061): Verifying the authentication response from 
provider
05-10 16:02:13.100: W/System.err(10061): 
org.brickred.socialauth.exception.SocialAuthException: Verification code is null
05-10 16:02:13.100: W/System.err(10061):    at 
org.brickred.socialauth.oauthstrategy.OAuth2.verifyResponse(OAuth2.java:114)
05-10 16:02:13.100: W/System.err(10061):    at 
org.brickred.socialauth.oauthstrategy.OAuth2.verifyResponse(OAuth2.java:102)
05-10 16:02:13.100: W/System.err(10061):    at 
org.brickred.socialauth.provider.FacebookImpl.doVerifyResponse(FacebookImpl.java
:164)
05-10 16:02:13.100: W/System.err(10061):    at 
org.brickred.socialauth.provider.FacebookImpl.verifyResponse(FacebookImpl.java:1
54)
05-10 16:02:13.100: W/System.err(10061):    at 
org.brickred.socialauth.SocialAuthManager.connect(SocialAuthManager.java:183)
05-10 16:02:13.100: W/System.err(10061):    at 
org.brickred.socialauth.android.SocialAuthDialog$SocialAuthWebViewClient$1.run(S
ocialAuthDialog.java:243)
05-10 16:02:13.100: W/System.err(10061):    at 
java.lang.Thread.run(Thread.java:856)
05-10 16:02:13.100: D/SocialAuthError(10061): 
org.brickred.socialauth.exception.SocialAuthException: Verification code is null

I am using socialauth-android-2.0.jar and socialauth-4.0.jar from 
socialauth-android-sdk-2.0.zip on windows 7 with java 1.6. 

Original comment by indiami...@gmail.com on 10 May 2013 at 10:45

GoogleCodeExporter commented 9 years ago
Try using the 2.1 jar above. It partially solved this problem for me, but for 
some reason only in the share button app. 

Original comment by gen3soft...@gmail.com on 10 May 2013 at 4:10

GoogleCodeExporter commented 9 years ago
Same error with twitter " Unable to retrieve the access token. Status: 401"

Original comment by jrodrigu...@gmail.com on 14 May 2013 at 3:25

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I need the source code with this fix 
Thank you 

Original comment by bilal.el...@gmail.com on 18 May 2013 at 4:42

GoogleCodeExporter commented 9 years ago
use 2.1 jar, and clean your project,. that's will fix facebook.
it's work for me:-)

Original comment by Donik...@gmail.com on 19 May 2013 at 3:19

GoogleCodeExporter commented 9 years ago
Hi , we are looking to release next version in next 2 weeks. In case you have 
any issues , requests please let us know. We will try to incorporate them.

Original comment by vineet.a...@3pillarglobal.com on 22 May 2013 at 11:01

GoogleCodeExporter commented 9 years ago
*Khushi Sharma..*

Original comment by khushbu....@gmail.com on 22 May 2013 at 11:03

GoogleCodeExporter commented 9 years ago
i have issue in facebook

*Khushi Sharma..*

On Wed, May 22, 2013 at 4:33 PM, Khushbu Sharma
<khushbu.sharma92@gmail.com>wrote:

Original comment by khushbu....@gmail.com on 22 May 2013 at 11:04

GoogleCodeExporter commented 9 years ago
use 2.1 jar, and clean your project,. that's will fix facebook.

Original comment by vineet.a...@3pillarglobal.com on 22 May 2013 at 11:05

GoogleCodeExporter commented 9 years ago
i have done this thing...

*Khushi Sharma..*

Original comment by khushbu....@gmail.com on 22 May 2013 at 11:15

GoogleCodeExporter commented 9 years ago
Hi,

I tried 2.1 jar it lets me send to linkedin, twitter but not facebook.  I still 
get same exception as I reported earlier.

Regards,

Miten.

Original comment by indiami...@gmail.com on 23 May 2013 at 6:50

GoogleCodeExporter commented 9 years ago
this jar file work where u have bigger screen like any 7" tab, but screen size 
less then it not able to show UI component OK/CANCEL on FB authenticate page, 
it just display n went..at bottom(not visible) of layout, and since layout not 
scroll-able so u can's scroll it...any suggestion if any one faced similar 
problem..so if it's solved in any new version..please update here.

Thanks

Original comment by shubhamP...@gmail.com on 26 May 2013 at 8:07

GoogleCodeExporter commented 9 years ago
Hi gen3Software , the jars will work for all examples. you need to replace 
manually these jars in your share-button app.

Original comment by vineet.a...@3pillarglobal.com on 27 May 2013 at 8:19

GoogleCodeExporter commented 9 years ago
Hi indiamiten , 

try to clean your project and remove the app from the account you are testing 
and do fresh authentication.

Original comment by vineet.a...@3pillarglobal.com on 27 May 2013 at 8:21

GoogleCodeExporter commented 9 years ago
Hi Shubham , 

we have tested this problem not exists. checked with s3 , s2 , galaxy Y. which 
device u are testing? if size is small the dialog will be scrollable.

Original comment by vineet.a...@3pillarglobal.com on 27 May 2013 at 8:23