Has a User Added My App?

Problem

I need to check whether a user has added my app.

Solution

Use the Users.isAppAdded() method:

$hasAdded = $facebook->api_client->users_isAppAdded();

Discussion

Users.isAppAdded() returns a boolean indicating whether the specified user has installed your app. This will check for the current loggedinuser by default, but web-based Facebook apps can also pass in a different uid:

$hasAdded = $facebook->api_client->users_isAppAdded('12345');

Get Facebook Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.