I am working on android application using parse.com services. I am login through users credentials but after login i want to get the users number from facebook just like email address, last name. Please guide me a way to get user mobile number using android platform
Thanks in advance
Facebook has retracted these features of the API due to privacy concerns.
Source: Here
There is no way to get the mobile number of a Facebook user via the Graph API. Even not if the user set it to public.
Please refer this link https://developers.facebook.com/docs/graph-api/reference/v2.1/user/#fields
Related
I have an application that is using facebook login and i wanted to add account kit for anyone who didn't want to use the facebook login or doesn't have a facebook account. The problem is that with account kit you either use the phone number or email and thats all but my User model has fields like name, phone and others. If anyone has done this before then you could please explain the workthrough. I thought of creating a different User model for the account kit login but the idea seems vague. Any help is appreciated.
Update
I am using the facebook places API so i need access tokens.
Developers integrate both Facebook Login and Account Kit into their apps. This allows for people to choose their login mechanism and increase user base.
An example case study from Saavn who did this: https://developers.facebook.com/docs/case-studies/saavn?__mref=message_bubble
Firebase Authentication is very useful in your case
refer this:https://firebase.google.com/docs/auth/
Google Firebase offers many authentication like google ,facebook,twitter and custom authentication also
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 have an app on both iOS and Android that has the option to login via Facebook.
If I register and login from Android, I can use that type of login on every Android device ( just enter Facebook mail and password and login is ok ). If I use the same account on iOS, the register screen appears. Same thing if I first register the account on iOS and then try to use it on Android.
I'm getting different Facebook user ids on the 2 operating systems. On Android I use socialauth from Google, and on iOS I use the details from the integrated Facebook app.
The id is stored on a server and when an user try to login with Facebook it compares the id with the one stored.
How can I generate an unique Id both on Android and iOS for the same account?
I assume you are using 2 different Apps. You need to use the exact same App to get the same User ID, you donĀ“t get the global ID anymore but only an "App Scoped ID". Check out the changelog for more information: https://developers.facebook.com/docs/apps/changelog
Thanks for the reply. I fixed this issue by registering the app on https://developers.facebook.com/apps and setting the iOS and Android details. Also I changed to Facebook SDK on both platforms.
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 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.