roshangit8 / socialauth-android

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

Tweets are not posted through social auth android 4.0 #46

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Integrated as per the instructions
2.It worked fine up to 04/04/2013.
3.Your sample programs social-bar, social button are also not working.Not able 
to see the tweets posted at twitter

What is the expected output? What do you see instead?

Tweets has to be posted to twitter

What version of the product are you using? On what operating system?
4.0

Please provide any additional information below.

Authentication happens. I was allowed to give twitter username and password  
and then after, i was not allowed to tweet. 

Message at logcat : error at get AcessToken. Find the log attached

Original issue reported on code.google.com by arvind.a...@gmail.com on 5 Apr 2013 at 2:35

Attachments:

GoogleCodeExporter commented 9 years ago
Hi , 

I think twitter has done changes yesterday. we are getting the same issue now 
and looking to find out. 

will update on thread

Original comment by vineetmo...@gmail.com on 5 Apr 2013 at 9:57

GoogleCodeExporter commented 9 years ago

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

GoogleCodeExporter commented 9 years ago
Hi Vineet,
We have fixed the issue. The issue is with the callback URI which you have 
mentioned in the SocialAuthAdapter.Provider enum. For Twitter it should be

TWITTER(Constants.TWITTER, "<Call back url which you mentioned in the twitter 
developer site>?oauth_callback=oob", "twitterapp://connect?denied")

On another note, we handled on more issue related to Canceling the Dialog and 
Activity before Authorization page loads. If the Dialog is canceled and Destroy 
the current Activity, the App was crashing for which you should add below code 
in OnCreate method of SocialAuthDialog.

mSpinner.setOnCancelListener(new OnCancelListener() {
            @Override
            public void onCancel (DialogInterface dialogInterface) {
                mWebView.stopLoading();
                mListener.onCancel();
                SocialAuthDialog.this.dismiss();
            }
        });

And Create a new method as below

/**
     * Cancel the webview loading on back pressed
     * 
     */
    public boolean onKeyDown(int keyCode, KeyEvent event) {
         if (keyCode == KeyEvent.KEYCODE_BACK && event.getAction() == KeyEvent.ACTION_DOWN) {
                mWebView.stopLoading();
                 dismiss();
                 mListener.onCancel();
                 return true;
         }
         return false;
    }

Also we have noted that you are not handling the Access token expiry. Is it 
possible to add it in the library?

Hope this helps.

Regards,
Arvind

Original comment by arvind.a...@gmail.com on 5 Apr 2013 at 12:00

GoogleCodeExporter commented 9 years ago

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

GoogleCodeExporter commented 9 years ago
Hi , 

We have integrated your fix. Kindly do a test for us and provide us feedback 
over new sdk. We will then officially release this sdk.

Original comment by vineet.a...@3pillarglobal.com on 7 Apr 2013 at 4:33

Attachments:

GoogleCodeExporter commented 9 years ago
I had a similar issue (SocialAuthException: Unable to retrieve the access 
token. Status: 401) when trying to login. This also seemed to have changed in 
the last week. Your updated socialauth-android-2.1.jar release fixes it for me.

Original comment by felix.de...@gmail.com on 8 Apr 2013 at 2:14

GoogleCodeExporter commented 9 years ago
Thanks , we will be releasing patch soon.

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

GoogleCodeExporter commented 9 years ago
Hi there,

I had a working android App, and now it seems I have a problem with login 
(SocialAuthException: Unable to retrieve the access token. Status: 401), can 
anyone help me with some more detail information on how to fix it, I must 
deliver this in two days, your help would be deeply appreciated 

Original comment by Mohammed...@gmail.com on 8 Apr 2013 at 8:56

GoogleCodeExporter commented 9 years ago
hi , please download socialauth-android 2.1 jar and replace the socialauth 
android 2.0 jar

Original comment by vineet.a...@3pillarglobal.com on 8 Apr 2013 at 8:58

GoogleCodeExporter commented 9 years ago
thax its work for me 

Original comment by Mohammed...@gmail.com on 8 Apr 2013 at 10:25

GoogleCodeExporter commented 9 years ago
Hi...
i've downloaded 2.1. its working to get user profile.. when i get friends list, 
its throws error.

04-16 10:06:03.925: I/TwitterImpl(14690): Fetching contacts from 
http://api.twitter.com/1/friends/ids.json?screen_name=sgm_friends&cursor=-1
04-16 10:06:03.930: D/SocialAuthAdapter(14690): Contact list not Received
04-16 10:06:03.930: W/System.err(14690): 
org.brickred.socialauth.exception.SocialAuthException: Failed to retrieve the 
contacts from 
http://api.twitter.com/1/friends/ids.json?screen_name=sgm_friends&cursor=-1
04-16 10:06:03.930: W/System.err(14690):    at 
org.brickred.socialauth.provider.TwitterImpl.getContactList(TwitterImpl.java:287
)
04-16 10:06:03.930: W/System.err(14690):    at 
org.brickred.socialauth.android.SocialAuthAdapter.getContactList(SocialAuthAdapt
er.java:688)
04-16 10:06:03.930: W/System.err(14690):    at 
org.brickred.customui.CustomUI.Events(CustomUI.java:199)
04-16 10:06:03.935: W/System.err(14690):    at 
org.brickred.customui.CustomUI$ResponseListener$1.onClick(CustomUI.java:137)
04-16 10:06:03.935: W/System.err(14690):    at 
com.android.internal.app.AlertController$AlertParams$3.onItemClick(AlertControll
er.java:934)
04-16 10:06:03.935: W/System.err(14690):    at 
android.widget.AdapterView.performItemClick(AdapterView.java:298)
04-16 10:06:03.935: W/System.err(14690):    at 
android.widget.AbsListView.performItemClick(AbsListView.java:1283)
04-16 10:06:03.935: W/System.err(14690):    at 
android.widget.AbsListView$PerformClick.run(AbsListView.java:3074)
04-16 10:06:03.935: W/System.err(14690):    at 
android.widget.AbsListView$1.run(AbsListView.java:4147)
04-16 10:06:03.935: W/System.err(14690):    at 
android.os.Handler.handleCallback(Handler.java:615)
04-16 10:06:03.935: W/System.err(14690):    at 
android.os.Handler.dispatchMessage(Handler.java:92)
04-16 10:06:03.935: W/System.err(14690):    at 
android.os.Looper.loop(Looper.java:137)
04-16 10:06:03.935: W/System.err(14690):    at 
android.app.ActivityThread.main(ActivityThread.java:4898)
04-16 10:06:03.935: W/System.err(14690):    at 
java.lang.reflect.Method.invokeNative(Native Method)
04-16 10:06:03.935: W/System.err(14690):    at 
java.lang.reflect.Method.invoke(Method.java:511)
04-16 10:06:03.935: W/System.err(14690):    at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1008)
04-16 10:06:03.935: W/System.err(14690):    at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:775)
04-16 10:06:03.935: W/System.err(14690):    at 
dalvik.system.NativeStart.main(Native Method)
04-16 10:06:03.935: W/System.err(14690): Caused by: 
org.brickred.socialauth.exception.SocialAuthException: 
android.os.NetworkOnMainThreadException
04-16 10:06:03.935: W/System.err(14690):    at 
org.brickred.socialauth.util.HttpUtil.doHttpRequest(HttpUtil.java:154)
04-16 10:06:03.935: W/System.err(14690):    at 
org.brickred.socialauth.util.OAuthConsumer.send(OAuthConsumer.java:406)
04-16 10:06:03.935: W/System.err(14690):    at 
org.brickred.socialauth.util.OAuthConsumer.httpGet(OAuthConsumer.java:280)
04-16 10:06:03.935: W/System.err(14690):    at 
org.brickred.socialauth.oauthstrategy.OAuth1.executeFeed(OAuth1.java:121)
04-16 10:06:03.940: W/System.err(14690):    at 
org.brickred.socialauth.provider.TwitterImpl.getContactList(TwitterImpl.java:285
)
04-16 10:06:03.940: W/System.err(14690):    ... 17 more
04-16 10:06:03.940: W/System.err(14690): Caused by: 
android.os.NetworkOnMainThreadException
04-16 10:06:03.940: W/System.err(14690):    at 
android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1118)
04-16 10:06:03.940: W/System.err(14690):    at 
java.net.InetAddress.lookupHostByName(InetAddress.java:385)
04-16 10:06:03.940: W/System.err(14690):    at 
java.net.InetAddress.getAllByNameImpl(InetAddress.java:236)
04-16 10:06:03.940: W/System.err(14690):    at 
java.net.InetAddress.getAllByName(InetAddress.java:214)
04-16 10:06:03.940: W/System.err(14690):    at 
libcore.net.http.HttpConnection.<init>(HttpConnection.java:70)
04-16 10:06:03.940: W/System.err(14690):    at 
libcore.net.http.HttpConnection.<init>(HttpConnection.java:50)
04-16 10:06:03.940: W/System.err(14690):    at 
libcore.net.http.HttpConnection$Address.connect(HttpConnection.java:340)
04-16 10:06:03.940: W/System.err(14690):    at 
libcore.net.http.HttpConnectionPool.get(HttpConnectionPool.java:87)
04-16 10:06:03.940: W/System.err(14690):    at 
libcore.net.http.HttpConnection.connect(HttpConnection.java:128)
04-16 10:06:03.945: W/System.err(14690):    at 
libcore.net.http.HttpEngine.openSocketConnection(HttpEngine.java:315)
04-16 10:06:03.945: W/System.err(14690):    at 
libcore.net.http.HttpEngine.connect(HttpEngine.java:310)
04-16 10:06:03.945: W/System.err(14690):    at 
libcore.net.http.HttpEngine.sendSocketRequest(HttpEngine.java:289)
04-16 10:06:03.945: W/System.err(14690):    at 
libcore.net.http.HttpEngine.sendRequest(HttpEngine.java:239)
04-16 10:06:03.945: W/System.err(14690):    at 
libcore.net.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:80)
04-16 10:06:03.945: W/System.err(14690):    at 
org.brickred.socialauth.util.HttpUtil.doHttpRequest(HttpUtil.java:152)
04-16 10:06:03.945: W/System.err(14690):    ... 21 more

Original comment by Gan...@eventurers.com on 16 Apr 2013 at 4:40

GoogleCodeExporter commented 9 years ago
 org.brickred.socialauth.exception.SocialAuthException: Failed to retrieve the user profile from  http://api.twitter.com/1/users/show.json?screen_name=chaitanya080387. Status :410

Original comment by chaitany...@gmail.com on 13 Jun 2013 at 10:50