<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<script type="text/javascript" language="JavaScript">
function reDo() {
if (innerWidth != origWidth || innerHeight != origHeight)
location.reload();
}
if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == "Netscape")) {
origWidth = innerWidth;
origHeight = innerHeight;
onresize = reDo;
}
onerror = null;
</script>
<style type="text/css">
< !-- div.WebHelpPopupMenu {
position: absolute;
left: 0px;
top: 0px;
z-index: 4;
visibility: hidden;
}
p.WebHelpNavBar {
text-align: right;
}
-->
</style>
<script type="text/javascript">
gRootRelPath = "../../../..";
gCommonRootRelPath = "../../../..";
gTopicId = "9.2.12.4_1";
<script type="text/javascript" src="../../../../template/scripts/rh.min.js"></script>
<script type="text/javascript" src="../../../../template/scripts/common.min.js"></script>
<script type="text/javascript" src="../../../../template/scripts/topic.min.js"></script>
<script type="text/javascript" src="../../../../template/scripts/topicwidgets.min.js"></script>
<script type="text/javascript" src="../../../../whxdata/projectsettings.js"></script>
<link rel="stylesheet" type="text/css" href="../../../../template/styles/topic.min.css"/>
<link rel="stylesheet" type="text/css" href="../../../../template/Charcoal_Grey/topicheader.css"/>
<meta name="topic-status" content="Draft"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Facebook</title>
<meta name="generator" content="Adobe RoboHelp 2019"/>
<link rel="stylesheet" href="../../../../assets/css/default.css" type="text/css"/>
<meta name="rh-authors" content="Mark Alexander"/>
<meta name="topic-comment" content="Reference section for all the Facebook functions"/>
<meta name="rh-index-keywords" content="facebook_init (Obsolete),facebook_login (Obsolete),facebook_request_publish_permissions (Obsolete),facebook_request_read_permissions (Obsolete),facebook_check_permission (Obsolete),facebook_status (Obsolete),facebook_accesstoken (Obsolete),facebook_user_id (Obsolete),facebook_graph_request (Obsolete),facebook_dialog (Obsolete),facebook_send_invite (Obsolete),facebook_post_message (Obsolete),facebook_logout (Obsolete),facebook_launch_offerwall (Obsolete)"/>
<meta name="search-keywords" content="Facebook,facebook_init,facebook_login,facebook_request_publish_permissions,facebook_request_read_permissions,facebook_check_permission,facebook_status,facebook_accesstoken,facebook_user_id,facebook_graph_request,facebook_dialog,facebook_send_invite,facebook_post_message,facebook_logout,facebook_launch_offerwall"/>
</head>
<body>
<div class="topic-header rh-hide" id="rh-topic-header" onclick="rh._.goToFullLayout()">
<div class="logo">
</div>
<div class="nav">
<div class="title" title="Facebook">
<span>Facebook</span>
</div>
<div class="gotohome" title="Click here to see this page in full context">
<span>Click here to see this page in full context</span>
</div>
</div>
</div>
<div class="topic-header-shadow rh-hide" id="rh-topic-header-shadow"></div>
<h1>Facebook</h1>
<p>Facebook is one of the most important social media sites on the internet and many games and developers currently have their own pages for posting games and media. GameMaker Studio 2 has an extension that permits you
to connect with Facebook and perform certain actions and tasks that their API permits. It is recommended that you visit the <a href="https://developers.facebook.com/" target="_blank">Facebook Developers</a> page before starting
to use the extension as a firm understanding of how the Facebook Graph works and the available calls and permissions is essential for you to get the most from these functions.<br/>
<br/> You can find out how to setup and use the Facebook extension for all available platforms from the following link:</p>
<ul class="colour">
<li><a href="https://help.yoyogames.com/hc/en-us/articles/360004488072-iOS-Android-and-HTML5-Integrating-Facebook">Android, iOS and HTML5: Integrating Facebook</a></li>
</ul>
<p> </p>
<p>The following are <b>obsolete functions</b> that were only valid for the legacy Facebook API. As such you <b>can no longer use these functions</b> in your projects and they are listed here in case you have imported
an old prject with them in it. For current Facebook functionality you need to have activated the <b>Facebook API</b> in the appropriate <a href="../../../../Settings/Game_Options.htm">Game Options</a> for
the target platform, which will prompt you to download and install an extension. The extension comes with a <tt>*.pdf</tt> format "mini-manual" explaining how to use it as well as showing all the function definitions
and examples. All references to the old <tt>facebook_*()</tt> functions will need to be replaced (and updated) to use the extension <tt>fb_*()</tt> equivalents.</p>
<p>The functions listed below were for integrating your game with Facebook:</p>
<p> </p>
<ul class="colour">
<li><span class="inline">facebook_init</span></li>
<li><span class="inline">facebook_login</span></li>
<li><span class="inline">facebook_request_publish_permissions</span></li>
<li><span class="inline">facebook_request_read_permissions</span></li>
<li><span class="inline">facebook_check_permission</span></li>
<li><span class="inline">facebook_status</span></li>
<li><span class="inline">facebook_accesstoken</span></li>
<li><span class="inline">facebook_user_id</span></li>
<li><span class="inline">facebook_graph_request</span></li>
<li><span class="inline">facebook_dialog</span></li>
<li><span class="inline">facebook_send_invite</span></li>
<li><span class="inline">facebook_post_message</span></li>
<li><span class="inline">facebook_logout</span></li>
<li><span class="inline">facebook_launch_offerwall</span></li>
</ul>
<p> </p>
<p> </p>
<p> </p>
<div class="footer">
<div class="buttons">
<div class="clear">
<div style="float:left">Back: <a href="../Asynchronous_Functions.htm">Asynchronous Functions</a></div>
<div style="float:right">Next: <a href="../Achievements_And_Leaderboards/Achievements_And_Leaderboards.htm">Achievements And Leaderboards</a></div>
</div>
</div>
<h5>© Copyright YoYo Games Ltd. 2020 All Rights Reserved</h5>
</div>
</body></html>