Fb:user

From Facebook Developers Wiki

Jump to: navigation, search

[edit] Description

Hides the content enclosed in this tag from any user who is blocked by the user whose uid is referenced in fb:user.

For example, Alice and Bob are friends. Carol and Bob are friends. Alice and Carol are not friends. Alice cannot see Carol's profile, but Carol has not blocked her and vice versa. Carol writes on Bob's Wall. Alice can see Carol's Wall post and her name, though she still can't see Carol's profile.

However, if Carol blocks Alice (or vice versa), then Carol's Wall post won't show up at all.

If you want to hide user content based on a privacy check, use Fb:if-can-see.


[edit] Attributes

RequiredNameTypeDescription
required uid int The user ID of the user whose information will be contained in the tag.


[edit] Examples

<fb:user uid="12345" > This is user 12345's information. It should only be shown to people who have not been blocked by user 12345. </fb:user>