I am trying to access Picasa Albums using PicasawebService. This service requires authentication. How do I do this from an Android device, similar to what I have to do with Facebook Authentication?
What I mean is that Facebook SDK 4.x has a LoginManager, where I specify that I want to Login to my Facebook account with certain access privileges. If I am not currently logged in into my FB account, then FB login will show up, then it will ask me if I want to allow the user to access that was requested by the LoginManager.
On an Android device, I am already logged in, since I have to have a google account to have an Android device. Can someone point me to some sample code that will accomplish the above.
Thank You,
Related
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
I developed an android app which consists facebook login through graph api.
I created the new app in facebook developers from my account and corresponding app_id is configured in android. So here I am able to login with facebook with my account successfully.
But if I ask other user to login it is throwing below error.
App not set up: the developer of this app has not set up the app properly for facebook login
So what is missing here to make it login for all fb users.
Could someone please guide me to reach my intention. TIA.
To make Facebook login working on other's account you need to make it available in the facebook developer console.
Do you want to make this app and all its live features available to the general public?
Turn that to yes and app is available to all the users.
I'm working on LinkedIn ingratiation in my Android app, and I've completed this using simple Webview which will ask for Email and password every time,
what i want to do is getting the Login credential from LinkedIn app (if already installed in device), as in Facebook.
But i'm not able to find any tutorial about it.
Plz help me out.
Thanks
You can not and should not. On Android all apps have a private area to store their data. Unless you have root you can't read another app's data (unless the info is saved to public storage which in this case it is not).
What you should be doing is getting your own authorization by asking the user directly for details and permission and using that. I believe LinkedIn uses OAuth2.0 so look into logging in using that.
You can refer this link:
https://www.studytutorial.in/linkedin-integration-and-login-in-android-tutorial
And also 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
For your reference
I am developing an API that will be used solely for a mobile app, the mobile app allows users to log in via facebook and grant the app permission to access the users facebook friends list and post on their wall.
However I have some confusion as to where I integrate into the API and where the app developers integrate. I assume the login with facebook part is done by the app developers, who then pass the facebook access token into the API for it to store/retrieve friend list and make posts on the users wall.
Am I correct in assuming this? And if so can I test my part the implementation by retrieving friends list without having the app developers do their part first?
Thanks
First you have to register your app with your facebook id in developer.facebook.com then you will get the app id which you have to put into facebook login that generate access token for the process
To make any call to the Facebook API you need an app ID. after receiving it, you can make calls to the API from your controller using the Facebook php SDK
I am working on an application where I need to integrate the social functionality of Facebook.
What I want is to know if the user is already connected to Facebook through a Facebook application or some other application that uses Facebook, and use this authentication. That means that if the user is already connect to Facebook through his device I recognize that and use it in my application - not ask the user for a new login.
Is it possible?
I found a lot stuff in the web, but nothing is related to that. I already downloaded the facebook SDK and added it to my project. I saw that there is a method (facebook.getAccessToken()) to get the access token, but I think I can use it only if the user do his first login in my application.
Any help would be great.
Thanks.
That means that if the user is already connect to Facebook through his device I recognize that and use it in my application - not ask the user for a new login.
Yes it is possible..This is called as Single-Sign-On in facebook , by default Single-Sign-On is enabled. One and only thing you have to do is that you need to generate Hash Key and Register with your Application created in Facebook.
Also it is possible to disable Single-Single-On by passing an extra parameter as below :
authenticatedFacebook.authorize(context PERMISSIONS,-1,new LoginListener());
-1 - refers disabling SSO
Single-Sign-On is clearly explained in Facebook Documentation..