<fb:if-can-see/>
Looks at a given user’s privacy settings and verifies,
based on data provided to the what
attribute,
whether a user has permission to see the enclosed content. Use the
<fb:else/> tag (described later in this
chapter) to display content if a user does not have permission to
display the enclosed content.
<fb:if-can-see/>
can be an excellent way to
provide your own privacy controls on your application.
Here is example FBML code for
<fb:if-can-see/>
:
<fb:if-can-see uid="0123456789" what="photosofme"> <img src="http://fbmlessentials.staynalive.com/images/me.jpg" alt="external image of me" /> <fb:else> Sorry - you can't see images of me! </fb:else> </fb:if-can-see>
This is the rendered HTML if user 0123456789 can see your photos (based on your privacy settings):
<img src="http://fbmlessentials.staynalive.com/images/me.jpg" alt="external image of me />
(Note that an image would be rendered in the browser.)
This is the rendered HTML if user 0123456789 cannot see your photos:
Sorry - you can't see images of me!
3.145.109.234