android twitter4j authentication via installed twitter app not browser - android

i am using twitter4j in my android application to post status to twitter like in this example:
http://www.androidhive.info/2012/09/android-twitter-oauth-connect-tutorial/
All is working good but the question is:
The authentication is done via browser .. is there any way to detect if twitter app already installed on mobile and authenticate via it ?
Thanks.

EDITED: November 27, 2014
Twitter recently released Fabric that does include SSO support. From the Android docs:
When attempting to obtain an authentication token, the Kit will use the locally installed Twitter app to offer a single sign-on experience. If the Kit is unable to access the authentication token through the Twitter app, it falls back to using a web view to finish the OAuth process.
My older response is below.
tl;dr
Currently, SSO with Twitter is not possible on Android.
Longer version:
What you are basically asking for is Single sign-on (SSO), similar to what is available with the Facebook SDK for Android. Twitter has never bothered to even implement their own library for Android, let alone SSO. There are a bunch of people who have asked on the dev forums (here and here) but the standard response is, and I quote,
We do not currently offer a SDK for Android with the same level of tight integration as is available in iOS5.
Twitter needs to first get their Android app to support SSO. I would suggest using Facebook and Google+ for login instead of Twitter.

Related

Can LinkedIn Authorization work on Android if LinkedIn app is not installed?

I am trying to integrate Log In With LinkedIn on my android app. While looking through the developer documentation, I came across this : "The Mobile SDK for Android requires the official LinkedIn Android application is also installed to support the SDK's capabilities" (source)
Does it mean, the user needs to have LinkedIn app installed, to authenticate him/herself? The SDK can't use a webview, if the app is not installed? (like it happens for Twitter/Facebook)
Any thoughts on this will be appreciated
As the documentation you quoted states, the native LinkedIn application is presently required in order for the LinkedIn Mobile SDK to successfully authenticate.
Web-based authentication is on the roadmap, but in the meantime, you require the app to be installed.
The SDK will facilitate prompting the users to install the LinkedIn application on their mobile device if it detects that it is not installed when it is needed. Additional details can be found here: https://developer.linkedin.com/docs/android-sdk-auth#ux
If you are integrating LinkedIn Login in your application, you might face a difficulty that user must have to installed LinkedIn App in his/her mobile. As per the documentaion,
https://developer.linkedin.com/docs/android-sdk

Login with Facebook option trigger suggest to download an app

Yesterday I logged in to Airbnb with my Facebook account on my OSX. Shortly later I got a notification both on my iPhone and computer saying
"Airbnb is available to install on your iPhone"
My question is, does anyone here know how this was done? Is this a feature available to anyone who creates Facebook login? Any advice on how this was done is well appreciated.
Sincerely
Axel
I bet the notification is sent to you by Airbnb, right? If so, it's pretty easy to do. You give your facebook account information to Airbnb by login with facebook in there webpage. Then they just send a graph api request to facebook with your authorization access token, and you get an notification. For details you can refer to doc here: https://developers.facebook.com/docs/games/notifications
I found out what I was talking about. Facebook is adding a new feature which ask users if they want to get a link to the mobile app.
This is in Beta right now but you will automatically eligible for the feature if:
You have integrated the new Facebook Login on your website. You must be using at least version 2.0 of the Graph API and Login Dialog. Send to Mobile is not available for apps which invoke the Login dialog using Graph API v1.0.
You have integrated Facebook Login into your iOS or Android app. The "Single Sign On" switch within iOS and Android section of your app's dashboard must be set to "Yes"
Added your iOS App Store ID and/or the Android package name under which your app is listed in Google Play to your Facebook app's dashboard.
https://developers.facebook.com/docs/facebook-login/send-to-mobile

Third Party OAuth sign-up and login integration for mobile app

I am new to using third parties to provide login/sign up for an app I am building. I am just trying to get the email and name of the users via them logging in via Google, Facebook, or LinkedIn. I am also storing which one they signed up with just for the database's sake. I have come to a cross road. Right now the server is run using ruby, but there is an Android and iOS (Swift) app. I am wondering if I need to integrate all the third party SDKs or if I can just use a webview with OmniAuth for Ruby or would that not work? Any hints or direction on this would be appreciated. I am really lost and when I google anything I just get one provider and not a general answer.
Google and Facebook Login SDKs are very easy to implement and would give a richer experience on App compared to WebView also error handling is better after Facebook introduced the edit permissions in their latest update.
Linkedin Mobile SDK on the other hand needs Official Linkedin App to be installed in device. link: https://developer.linkedin.com/docs/android-sdk-auth So it will make user download a 16Mb linkedin app then signin before it can return back to your app. Also there is no iOS SDK for Linkedin yet
If Linkedin in not a necessity go for G+ and FB SDKs else use OmniAuth
PS: i have no experience with OmniAuth

Using Facebook Single Sign On (or other features) without the official Facebook app

I would like to integrate Facebook into an application - enable login using Facebook credentials (Single Sign On, to login to a third-party service), and also share some wall posts.
The problem is, I don't want to depend on the installation of the official Facebook app.
I heard about some solution involving opening Facebook login from a WebView, but didn't find details.
Anyone has experience with that?
Thanks
Yes you can do it using the OAuth for getting permission, then use the Graph API to post on users walls.
Please see this link for OAuth: http://developers.facebook.com/docs/authentication/
And this link for Graph API documentation:
http://developers.facebook.com/docs/reference/api/
especially for posting http://developers.facebook.com/docs/reference/api/post/
All Facebook APIs built on the idea that you perform request from a particular application (identified by application id). So the answer is NO, you cannot perform API queries (as well as authentication) without having registered an app.

Seamless Facebook Login

I am developing an app which allow updates shared with Facebook.
The app is running f9, but what I actually want is to have login credentials to be provided from my UI Login page. Please guide whether it's possible from the Facebook perspective
The official Facebook SDK for Android supports single sign-on, so assuming the user has the official Facebook app installed and authenticated (very often the case these days) there is no need for them to provide their credentials to you app, they'll just click through a permissions page. If your users have not authenticated with the Facebook app on their device they will need to provide them via Facebook's authentication dialog. Your users will be more inclined to use the Facebook features in your app if you use this approach over a custom authentication UI.
You can find more information on the SDK on Facebook's developer site.
Check out the facebook android tutorial on facebook's developer page. Hope thats what you are looking for.
Salil.

Categories

Resources