O'Reilly logo

Facebook Cookbook by Jay Goldman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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');

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required