Fb:if-user-has-added-app

From Facebook Developers Wiki

Jump to: navigation, search

Contents

[edit] Description

Displays the enclosed content only if the specified user has added the application to their account.


[edit] Attributes

RequiredNameTypeDescription
optional uid int The user ID to check. (default value is loggedinuser)


[edit] Examples

<fb:if-user-has-added-app uid="12345"> This user has put this app into his account. <fb:else>That user hasn't put this app into his account.</fb:else> </fb:if-user-has-added-app>


<fb:if-user-has-added-app> Hey, welcome! <fb:else>You must add this to your account to use it</fb:else> </fb:if-user-has-added-app>


[edit] Notes

As of FBML v1.1 you can use this tag only on a canvas page.

This tag seems to work inside <fb:subtitle> on a profile page.