Getting the real Facebook user id from a Facebook app - facebook

I'm getting the app scoped user id for my Facebook app using the graph api but I need the real user id to send notifications. Or is there a way to send notification using the app scoped user id?
Note: I've seen several similar questions asked but no answer has been given.

No you can not get the real user id. Yes, you can send notifications with the app-scoped id if your application is on the Facebook canvas. I do it in my apps.

Related

Any chance knowing Facebook APP user ID ahead?

I need to create an internal profile page in my app for users before they actually sign-in via Facebook. Any chance knowing what would be each FB user APP USER ID ahead?
Thanks!

Facebook web app: How to store an ID for user recognition

My company is developing a web app, we are looking to integrate this to Facebook, basically our web app provide some reports. Now some of the clients want to show some information in Facebook. Even though, we dont have any experience developing for Facebook we opened a developer account and we selected build a web-app(We are thinking to embed our web-app in Facebook).
So our question is:
how we could store an ID of our client once he install the app in Facebook?
does Facebook store this ID and every time a visitor in our client's Facebook app enters to the app in Facebook, Facebook sends this ID to our website to recognize which client is it?
Thanks for any inside on it.
Your question is very broad. I would advise to start reading the documentation on Facebook Login to get an idea about how it works.
In general, when an user logs in using Facebook, you will receive an App Scoped User ID. That is an ID that is unique and identifies the user for your app (note: for the same user, each app gets a different ASUID). You can use this ID to keep track of all your users.

Facebook api 2.2 Uninstall application

I have an application on Facebook and I want to remove user's data from my server when he/she removes my application from here. I was looking for such api on Facebook Technical Documentation but I did not find anything.
Facebook can send your app a notification when a user removes the app, it's called the Deauthorization Callback and sends you the user ID so you know the user removed your app

facebook javascript v2.0

Facebook javascript v2.0 informs app specific user id. But what will happen if any old user uninstall an application and again re install that application after changing the application version?
Will they have new userid?
He will get the same ID, so you can still identify returning users. I just tested it with an App to be sure: Authorize user, call /me, remove App, authorize user again, call /me > same ID.
Edit: We just discussed this in another thread: Facebook API 2.1 - About Invite Friends And App-scoped User IDs
It seems that the Scoped ID may change if the user deauthorized your App and authorizes it after a long time. But you would have to delete the user data anyway if the user does not use the App for a long time - data privacy and stuff.

Facebook app on localhost: I'm getting different user id

I have a website running on my localhost and I want to test the Facebook integration.
I have created 2 Facebook apps, one for the live site, the other one for the localhost site.
They works both, but when I login to the local app, my returned user id is
10204483432301440
When I login to the live app, my returned user id is
1101244663
The weird thing is that both ids brings me to my facebook page:
https://www.facebook.com/10204483432301440 --> sends me to https://www.facebook.com/francesco.eandi
https://www.facebook.com/1101244663 --> sends me to https://www.facebook.com/francesco.eandi as well!
Is it right? So do we have on facebook different user ids?
https://developers.facebook.com/docs/apps/changelog
App-scoped User IDs: To better protect people's information, when people log into a version of your app that has been upgraded to use Graph API v2.0, Facebook will now issue an app-scoped ID rather than that person's orginal ID. However, for users that have previously logged into your app, the user ID will not change.
Btw, if you need to map user IDs between Apps, this may help you: https://developers.facebook.com/docs/apps/for-business
Although i would not use this for dev/live. you can use "Test Apps" for that: https://developers.facebook.com/docs/apps/test-apps