Test if user has application installed with Graph API
This is working for me when asking for 'fields' - the docs appear to be referencing 'field' which I think is incorrect, I'll get it updated if that's the case:
e.g.
GET https://graph.facebook.com/me?fields=installed&access_token=<SNIPPED TOKEN>
Returns:
{
"installed": true,
"id": "<SNIPPED ID>"
}
A call to /me/permissions
is probably what you want in most cases as this will also show the extended permissions granted to your app
typeoneerror
I design businesses and the digital products that support them. For over 15 years, I've strategically planned and expertly executed digital experiences that delight, engage, and ultimately build stronger brands. I specialize in high-level technical strategies & full-stack development on web and mobile apps. I'm happiest solving tough technical challenges and building products with my favourite technologies including Ruby/Rails, Ember/Javascript, PHP, and Objective-C.
Updated on June 24, 2022Comments
-
typeoneerror almost 2 years
What is the most current method to determine if a Facebook User has installed an application? I see that there is an "installed" field on the "permissions" connection of a user object, but that requires an access_token to test. What happened to isAppUser and why does this URL say the following:
Please use the Graph API User object and GET /[UID]?field=installed to check if a user is has TOSed that app.
The referenced /[UID]?field=installed does nothing.
-
Igy over 12 yearsUpdate: this was a typo in the docs, i've updated it now. The correct parameter to retrieve specific of non-default fields (such as installed) is
fields
, notfield
-
Sweepster over 12 yearsWhat if we want to know if the user has installed an app belonging to someone else?
-
Igy over 12 yearsI don't believe that information is available, and I can't think of a good reason for it to be available either