Posts a message to the player's Facebook feed.


GML Code Example

facebook_post_message(title, caption, message, picture_url, redirect_url, actionname, action_url)

Argument Description
title The "name" of the link.
caption The caption of the link (appears beneath the link name).
message The message to include with the post.
picture_url A link to the picture included with this post.
redirect_url The link attached to this post.
actionname An action to be applied for this post.
action_url The link to use for the above action.

Returns: N/A


This function will posts a message direct to the user feed (ie, a “/me/feed” post to the facebook graph API ) . You give the name and the caption as well as a message and image to include, then the url to link to. The last two arguments, "actionname" and "actionurl" are optional and can either be left as empty strings ("") or they can be set to one of the permitted Facebook actions, like commenting or liking, in which case you should also supply an appropriate URL (for more information see Facebook Developers Api Post).

NOTE: There is no Facebook dialogue displayed for this function as the post is sent “silently” without user interaction. For this reason, you must have requested the correct permissions on login ("publish_actions").
NOTE: The user must be logged in for the message post to function.


GML Code Example

if mouse_check_button_pressed(mb_left)
    facebook_post_message("Catch The Haggis", "MacSweeneygames.com", "I just got a hi-score playing Catch The Haggis!", "http://MacSweeneygames.com/Clown.jpg", "http://MacSweeneygames.com/CatchTheHaggis.html", "", "");

The above code will silently post a message to the users wall feed.

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