FB.Connect.showBookmarkDialog

From Facebook Developer Wiki

Jump to: navigation, search

Contents

public static void showBookmarkDialog (Callback callback)

Description

This method pops up a bookmark dialog, prompting the user to bookmark the application so a link to your application appears among the user's application bookmarks.

Important: Facebook recommends you use the fb:bookmark FBML or XFBML tag to render the bookmark button. If you cannot use either of those tags, then you can call this method only within an onclick handler. This requires that you create your own bookmark button.

Make sure you specify a Bookmark URL in your application settings.

If the user already bookmarked your application, the dialog informs the user that the application has been bookmarked already.


Parameters

RequiredNameTypeDescription
required callback callback Callback to be executed after the dialog closes. The callback should be a function with no parameters.


Example Requests

FB.Connect.showBookmarkDialog(callback);




Back to class public FB.Connect

reference