Facebook Canvas App - Finding all users who have installed the app - facebook

How do I find out all users who have installed my canvas app ? Is there a UI on Facebook for it or do I need to query an API ?

See https://developers.facebook.com/docs/reference/fql/insights/#Metrics
You can check the application_installed_users value to figure out how many users have installed your app.
EDIT: this requires the use of the Facebook FQL interface, as covered at https://developers.facebook.com/docs/reference/fql/

It can't be done as per this - How to get all the user IDs of people who are using your Facebook application
I would suggest use you to use the depreceated REST API call once to save all the IDs of the users, and then add a new user to that list (keep on saving it in a db).

Related

facebook application for login and messenger same ids?

I am building a facebook messenger bot. And the bot is giving user ids. But it is not clear to me if the messenger ids are the same ids that would be returned if I use the same app and add to it a login feature. Because we already have an app and has a login feature, now we need to build a facebook bot and identify the already existing users in our db that are using the bot.
I have read facebook tutorial about linking 2 different applications to the same business to get consistent ids. But what if I use that same application to login users AND for messengers (by using the add products to the application, and so having one application, one app id) would that work? Would I be getting the same user ids?
PS: I would test myself but I am in an awkward position where the page/database/login app owner is a different person, and they are not big on sharing data, and I am supposed to blindly write a messenger code that is supposed to work when they deploy it.
All help is appreciated, thank you.
You need to use Facebook's ID Matching APIs for this purpose:
Here is the details: https://developers.facebook.com/docs/messenger-platform/identity/id-matching

FB Graph API How can I get the list of all user ever logged in my app?

It's possible to access through Graph API (or any other way) the list of all users logged in the past to my FB app?
Thanks
Marcello
There is no way to get that information, unless you store it in your own database.
You can see how many people using Facebook analytics. You cannot see their usernames, email, etc- you might be able to extend the analytics with some development to include those... but they dont come configured out of the box.
Here is a link to Facebook App Analytics:
https://developers.facebook.com/products/analytics

How to Support Facebook SDK for Unity on Mobile Platforms, Without having Facebook Canvas?

I am using Facebook-unity-sdk to for getting list of users friends.
but i am not being able to get any data.
i also tried open graph explorer to fire graph API
the results were as follows
Is there a way i could use some Graph API endpoint other then "invitable_friends" to retrieve list of all friends of user?
No, you can not. there is no other endpoint.
well.. as far as i understood your question you can do one thing.
Just add a platform(app on facebook) in your app settings, and when it asks you about "Canvas URL" just put any random website URL and save settings.
now check if the "invitable_friends" is working or not.
PS:-
You don't have to run by the rules every time. :)

How to find out which of your facebook friends are also using your mobile app?

We are building mobile app that uses Facebook for registration (know how to do this).
We would like to have a screen, where all your friends would be listed with indication, if they also use our app.
How should we save data (client, server) that one facebook user is also our app user?
When you're already using Facebook for authentication, you probably already have a column in the user table in your database that holds Facebook profile ids of each user. If you want to distinguish between them, just add a column modeling if that user is also using your mobile app.
By issuing a request to https://graph.facebook.com/PROFILE_ID/friends as described in the Facebook Graph API Documentation you can get the list of friends for a certain user without requiring any additional permissions.
Now just build the intersection between the friends list of the user and your (mobile app) user base and you got the list of his friends that are using your mobile app. You should of course do this comparision on the server, so you don't have to send the Facebook ids of your complete user base around.

List of events in facebook

Is there a way to query all the events listed in facebook? I see all API's provide a way to query information specific to a user or by an Application ID but not sure if its possible to query generic data such as a list of all events listed in facebook by various users or businesses/organizations.
You can examine the connections between objects using the URL structure graph.facebook.com/ID/CONNECTION_TYPE.
here's an example from the documentation :
https://graph.facebook.com/me/events?access_token=2227470867|2.gGtACmeQGq51Pxqu8pGnlg__.3600.1298570400-590157628|NdIFut8zccPqJoVQHcfRGI5GX6A
Yeas,, You have to download the SDK from facebook
SDK: https://developers.facebook.com/
(SDK available for different platforms).
Create a facebook app in facebook for your site, it will generates an application id and application secret, using that details to configure the SDK. And you can now able to query the events db using the sdk and get events from facebook (Profile or a page).