Fetch all app IDs I am an admin of - facebook

I want to fetch a list of the Opengraph and Graph apps that my account is an admin of. I cannot find documentation to perform such a task. Is this possible?
I am developing a tool to fetch tokens dynamically (which we will then use to make user-generated posts later). Currently, I have to paste in the AppID manually. I would like to make a dropdown of the current list of available apps to perform this task.
Edit~ This page of FB documentation suggests you can of course fetch a lot of information about an individual Application when you already have its applicationID: http://developers.facebook.com/docs/reference/api/application/
Instead, I would develop roughly this: 'Facebook, I have the access_token for this developer account, for which apps is this developer account an administrator' Response: 'AppID1, AppID2, AppID9'

You can access the lists of apps a use is a developer on by hitting 
/me/applications/developer/ 
or using the app_role FQL table with following query
select application_id from developer where developer_id = xxxxxxxxx
Thanks to davek804 for the query

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

Can I add profile data to a facebook test user?

I have a facebook application that requires user data (specifically location). I am trying to use the test user api but I can't figure out how to add additional info to my test users besides through logging into fb and changing it on the page. Is there a way to do this through the api either through initialization or by using an api call to update a user?
Someone posted this question here, but there is no answer yet.
Today I exactly ran into the same problem. I have an application that uses the location information of facebook users and now I'm searching for a way to automate the creation of these users for testing purpose.
You can now log in as a test user and update any profile information the same as a normal user within your app settings. However, you cannot interact with other users or 'like' pages, etc.
Section: Apps > Edit App > Developer Roles
URL: https://developers.facebook.com/apps/[APP_ID_HERE]/roles?ref=nav
Facebook doesn't have any graph api's to update profile information besides their current status. This includes test users. You can only set the name, password, and email when you create the user too unfortunately.

How can I integrate profile information of Facebook group members on an external website?

the question is in the title.
I have been assigned to find out if the following is possible:
I create a group on Facebook. Selected people become members.
On a external website, I want to display all group members with their basic info - picture, name, link to public profile.
I have skimmed the Facebook Dev pages, and so far it seems to me that this is not possible simply with Social Plugins. Do I have to write some sort of App for Facebook? It came to my mind, that there should probably some permission from the group members to display them, is that right? But this probably does only work with an App, not a group. So do I have to create an App and use the Graph API to include the data on the website?
Yes, you will have to create an app. The facepile plugin will show faces, but I do not believe you can target a group with it.
It should be a reasonably straightforward app to create: you will need the user_group permission and I believe that would be it.
If the group is public, just access it by going to https://graph.facebook.com/groupid and to get the members, access https://graph.facebook.com/groupid/members
If the group is private or closed, you will need to create an app so that you can get an access token. Look at their authorization documentation on that (you will probably need to create a temporary dummy website to do the redirects to Facebook and record the token then grant you). You will probably need offline_access to run the call over and over.
With that access token, access the groups api using the url format posted above and with the access_token appended as a query string parameter.

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

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).

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).