Skip to content
Fresh 2026

FB.GameGroupCreate

Prompts to create a new Game Group. See that feature's documentation for details.

Parameters

text
public static void GameGroupCreate(
        string name,
        string description,
        string privacy = "CLOSED",
        FacebookDelegate<IGroupCreateResult> callback = null
)
NameTypeDescriptionDefault
namestringThe name of the group you wish to create.<br> Required
descriptionstringA short description of the group's purpose.<br> Required
privacystringThe privacy of the group. OPEN groups' content is visible to anyone; CLOSED groups can be found by anyone but their content is only visible to members; SECRET groups can only be found by their members.'CLOSED'
callbackFacebookDelegate<br> <IGroupCreateResult>A callback which will be informed of the outcome of the dialog.

Example

text
FB.GameGroupCreate (
    "Wolf Clan",
    "The rallying point for the Wolf Clan: strategy, chat, and more.",
    "CLOSED",
    GroupCreateCallBack
);

void GroupCreateCallBack (IGroupCreateResult result) {
    if (result.ResultDictionary.ContainsKey("id")) {
        // log the current group ID
        Debug.Log(result.ResultDictionary["id"]);
    }
}