Name

<fb:if-is-friends-with-viewer/>

Synopsis

<fb:if-is-friends-with-viewer>...<fb:else>...</fb:else>
    </fb:if-is-friends-with-viewer>

Renders different content for those who may not be friends with the app user and those who are friends with the app user.

FBML-Specific Attributes

Required

None.

Optional

uid=[int] default: profileowner

The ID of the user you want to verify as a friend of the viewer.

includeself=[true|false] default: true

If the viewer is actually the user with the specified ID and this is true, the tag returns true.

Example FBML

Here is example FBML code for <fb:if-is-friends-with-viewer/>:

<fb:if-is-friends-with-viewer> The two of you are friends 
  <fb:else> The two of you are not friends </fb:else> 
</fb:if-is-app-user>

Rendered HTML for Single Instance of Tag

If the current viewer is friends with the person who has installed the application, the rendered HTML looks like this:

The two of you are friends

If the current viewer is not friends with the person who has installed the application, the rendered HTML looks like this:

The two of you are not friends

Additional Information

  • This tag supports <fb:else/>.

  • This tag may be used only on a user’s canvas page.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.116.62.168