How to make Facebook games
#1
Posted 25 September 2011 - 01:57 PM
First you will need to have your game already on a website. I think there are a few tutorials for that already if you don't know how to do that. That's probably the hardest part.
Next go HERE and find the create app button. Put in your app name & stuff. NOTE: You may need to put in your phone number into Facebook if you haven't already.
Then you should be on the edit app screen. Upload images for the TWO icons at the top of the screen. Scroll down and select "app on Facebook" when you see it. Now insert the URL of your game in the two text boxes bellow and change "http://" to "https://" in the second text box.
From memory, that's pretty much it. Find the button on the right that says "view app profile page" and it should be there. Upload a "profile picture" for your app (mine is the same as the icon). Click on "go to app" to play it.
I hope I didn't miss out on anything, but I remember it was pretty self explanatory when I got pointed in the right direction. So you should be fine.
And remember, you can play the "first Facebook game with GameMaker: HTML5" (quote Mark Overmars), made by yours truly, HERE. And here is another Facebook app that I made, HERE.
#2
Posted 25 September 2011 - 02:44 PM
#3
Posted 25 September 2011 - 03:10 PM
#4
Posted 25 September 2011 - 07:48 PM
#5
Posted 25 September 2011 - 10:57 PM
#6
Posted 25 September 2011 - 11:44 PM
It looks like it works if you are not signed into facebook. But when I am signed in, it gives me this error:
Error 107 (net::ERR_SSL_PROTOCOL_ERROR): SSL protocol error.
Possibly you dont have the proper SLL on your host?
#7
Posted 25 September 2011 - 11:52 PM
#8
Posted 07 October 2011 - 08:09 PM
if you know some php you can access a persons information and post achievements to their walls like normal facebook games.
ugh... so my HTML5 works great, but in facebook mouse clicking doesn't? Anyone run into this?
#9
Posted 08 October 2011 - 12:22 AM
Do you have the latest update of GM HTML5?
if you know some php you can access a persons information and post achievements to their walls like normal facebook games.
ugh... so my HTML5 works great, but in facebook mouse clicking doesn't? Anyone run into this?
#10
Posted 08 October 2011 - 11:35 AM
#12
Posted 08 October 2011 - 11:56 AM
This looks like a nice free option: http://social-server.com/index/
#13
Posted 08 October 2011 - 12:04 PM
I would have absolutely no ideaYeah, I checked that yours was still working - it does. I assume the domain you're hosting it on already has an SSL certificate.
I just typed it in and it worked...
#14
Posted 12 October 2011 - 01:37 AM
#15
Posted 12 October 2011 - 11:13 PM
#16
Posted 13 October 2011 - 04:23 AM
I am hoping that the GM staff will eventually provide support and tutorials for utilizing the power of facebook apps with GM. Until then I hope the community can suffice. Anyway, staying on topic, have you considered how to get users to add your app to their "apps" list?
After hours of searching and trying things, I came across this code that needs to be on the client-side of things (ie, in your html file i think)
<html>
<head>
<title>Client Flow Example</title>
</head>
<body>
<script>
function displayUser(user) {
var userName = document.getElementById('userName');
var greetingText = document.createTextNode('Greetings, '
+ user.name + '.');
userName.appendChild(greetingText);
}
var appID = YOUR_APP_ID;
if (window.location.hash.length == 0) {
var path = 'https://www.facebook.com/dialog/oauth?';
var queryParams = ['client_id=' + appID,
'redirect_uri=' + window.location,
'response_type=token'];
var query = queryParams.join('&');
var url = path + query;
window.open(url);
} else {
var accessToken = window.location.hash.substring(1);
var path = "https://graph.facebook.com/me?";
var queryParams = [accessToken, 'callback=displayUser'];
var query = queryParams.join('&');
var url = path + query;
// use jsonp to call the graph
var script = document.createElement('script');
script.src = url;
document.body.appendChild(script);
}
</script>
<p id="userName"></p>
</body>
</html>
I've used this and it does work, although, it requires a pop-up and any popup blocker blocks it. It also launches the game in a new window which is very annoying. Other than that, it seems to work perfectly. It adds the app to the apps list. It updates the "JoeSchome is now playing Your Game name" feed. It also adds the larger icon. I hope this helps.
I can't stress enough how helpful it would be if the GM staff shared with the community the steps to getting "They Need to be Fed" on facebook with the purchase options.
Edited by Joe H, 13 October 2011 - 04:23 AM.
#17
Posted 18 December 2012 - 04:32 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











