facebook_user_id

This function returns the unique Facebook user id.

Syntax:

GML Code Example

facebook_user_id()



Returns: String


Description

With this function you can poll Facebook for the user id of the currently logged in user. This will be returned as a string, with a format similar to "07778915123" which can then be used with the other Facebook functions.

NOTE: The user must be logged in to get the ID.


Example:

GML Code Example

fb_id = facebook_user_id();

The above code gets the user ID of the currently logged in user and stores it as a string in the variable "fb_id".





No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here