Jump to content


Photo

Social:GM - Use Facebook in your games


  • Please log in to reply
48 replies to this topic

#1 xxskxx

xxskxx

    GMC Member

  • New Member
  • 47 posts

Posted 03 October 2011 - 01:51 AM

Posted Image
social:gm - version 0.2 alpha


Try an example app

Features
  • get access to user's data
  • get access to user's friends
  • post to user's wall (dialog + stream publish!)
  • simple FQL querys
Planned:
  • pay dialog (if you want to make money)

Download
Including:
  • How tos (Create an app on Facebook, social:gm tutorial)
  • List of all functions
  • Extensions itselfs
  • Example project with comments :) (version 0.1)
Sorry for all spelling mistakes ! (English is not my mother tongue) :( ... report them please.

Wishes, Bugs... etc? Please give me feedback :)

Cheers!

Edited by xxskxx, 14 October 2011 - 10:05 PM.

  • 11

#2 True Valhalla

True Valhalla

    ಠ_ಠ

  • GMC Member
  • 5277 posts
  • Version:Unknown

Posted 03 October 2011 - 03:31 AM

Ooh, this could be very popular indeed :)
  • 0

book_forum.png


#3 ugriffin

ugriffin

    Idiot

  • Global Moderators
  • 1587 posts
  • Version:Mac

Posted 03 October 2011 - 07:09 AM

Sounds cool!
  • 0

#4 goresoft

goresoft

    GMC Member

  • GMC Member
  • 136 posts
  • Version:GM:Studio

Posted 05 October 2011 - 01:48 PM

Good extension! But

is possibile with your extension retrieving informations about user's image profile?

Edited by goresoft, 05 October 2011 - 01:49 PM.

  • 0
My games : ASTRO n. z. o.--||||--Fly Chris Fly!!(Android)
 
my facebook page : Blue Vessel Games Fan Page!
 
my twitter : @bluevesselgames
 
my Website : Blue Vessel Games 

#5 pedrosorio

pedrosorio

    GMC Member

  • GMC Member
  • 971 posts

Posted 05 October 2011 - 02:43 PM

Good extension! But

is possibile with your extension retrieving informations about user's image profile?


sgm_getProfilePicture(userid)
  • 0
"Let's leave the classics for your parents." - KC LC

#6 nujuat

nujuat

    Alex Tritt Games

  • GMC Member
  • 267 posts
  • Version:GM:Studio

Posted 06 October 2011 - 06:25 AM


Good extension! But

is possibile with your extension retrieving informations about user's image profile?


sgm_getProfilePicture(userid)

You really shouldn't have told me how to do that! I can't actually post my first GM game on the internet (even though it works in HTML5) because of stuff like this!

I'm going to be up ALL NIGHT!
  • 0

COGios.png  - - http://alextrittgames.com/  - - DGios.png
iOS - HTML5 - PC - MAC - OUYA


#7 Schalk

Schalk

    GMC Member

  • GMC Member
  • 487 posts
  • Version:GM:HTML5

Posted 06 October 2011 - 07:31 AM

This is neat. Thanks for sharing.
  • 0

Game Maker HTML5 Extensions
Mouse Extension | HTML Extension


#8 PrinceOfSorrow

PrinceOfSorrow

    GMC Member

  • GMC Member
  • 214 posts
  • Version:GM:Studio

Posted 06 October 2011 - 12:43 PM

Thank you so much for this extension :)
  • 0

#9 Glutex Master

Glutex Master

    The Game Guy

  • GMC Member
  • 204 posts
  • Version:GM8

Posted 08 October 2011 - 03:20 PM

NOOOO! Its incompatible with 39js for some reason... It normallly works, but when the 39js extension is added, the game doesn't load! :( :(
  • 0

Guess what?
YOU JUST LOST THE GAME!


#10 cotycrg

cotycrg

    GMC Member

  • GMC Member
  • 873 posts
  • Version:GM:Studio

Posted 09 October 2011 - 04:20 AM

It would be interesting if you could somehow implement a way to directly connect to a "friend's" computer. (somehow obtain an online friend's IP, to netplay with?)

Not sure if that's possible. Honestly, I'm one of those cave dwellers who hasn't messed very much with Facebook.
  • 0

#11 nujuat

nujuat

    Alex Tritt Games

  • GMC Member
  • 267 posts
  • Version:GM:Studio

Posted 09 October 2011 - 09:50 AM

It would be interesting if you could somehow implement a way to directly connect to a "friend's" computer. (somehow obtain an online friend's IP, to netplay with?)

Not sure if that's possible. Honestly, I'm one of those cave dwellers who hasn't messed very much with Facebook.

It's worth looking into if all of your games are free. The hardest part is actually getting your game online, making it work with Facebook is easy as.
  • 0

COGios.png  - - http://alextrittgames.com/  - - DGios.png
iOS - HTML5 - PC - MAC - OUYA


#12 Adam Rodriguez

Adam Rodriguez

    GMC Member

  • New Member
  • 9 posts

Posted 12 October 2011 - 01:34 AM

I follow the instructions in the "creating a facebook app" pdf, but facebook still wont let me load it directly through facebook. Help please.
  • 0

#13 xxskxx

xxskxx

    GMC Member

  • New Member
  • 47 posts

Posted 12 October 2011 - 08:36 PM

I follow the instructions in the "creating a facebook app" pdf, but facebook still wont let me load it directly through facebook. Help please.

This tutorial is not for creating a app on Facebook. You need a server which supports SSL.

I wanted to release version 0.2 today... i'm sorry but i have to move it to tomorrow ..

Version 0.2 includes some awesome features! (Get all friends of the user who are also using your app, Simple FQL request, publish_stream)


Version 0.2 can already be tested in the 1st post. Download will be available tomorrow ;)

Edited by xxskxx, 13 October 2011 - 10:14 PM.

  • 0

#14 xxskxx

xxskxx

    GMC Member

  • New Member
  • 47 posts

Posted 14 October 2011 - 10:04 PM

Sorry for double posting.. but Version 0.2 can be downloaded now!

new features:
  • check permissions
  • stream publish
  • simple fql
  • ( + get all friends of your user who play your game,too )

Download in the first post


NOOOO! Its incompatible with 39js for some reason... It normallly works, but when the 39js extension is added, the game doesn't load! :( :(

I couldn't find any complications ... i'm sorry

Edited by xxskxx, 14 October 2011 - 11:03 PM.

  • 0

#15 Schalk

Schalk

    GMC Member

  • GMC Member
  • 487 posts
  • Version:GM:HTML5

Posted 14 October 2011 - 10:33 PM

This things awesome. Thanks for spending your time to make this extension :)
  • 0

Game Maker HTML5 Extensions
Mouse Extension | HTML Extension


#16 Joe H

Joe H

    GMC Member

  • GMC Member
  • 359 posts
  • Version:GM:Studio

Posted 15 October 2011 - 03:29 AM

It is really awesome and is a big help.

I use it in Fall, a little game that is helping me learn all this stuff. If you would like to see another example of posting a score or an achievement ( without requesting additional permissions ), please try it out.

Fall on Facebook:
Fall

Edited by Joe H, 15 October 2011 - 04:56 AM.

  • 0

Independent Games by Joe and Matt:
evg_logo_header_125h.png

Spoiler

#17 rucodemente

rucodemente

    GMC Member

  • GMC Member
  • 56 posts

Posted 03 November 2011 - 10:29 PM

This looks terrific.

Is it possible to use this to handle scores and achievements through Facebook's own APIs?

https://developers.f...com/docs/score/
https://developers.f...s/achievements/
  • 0

#18 xxskxx

xxskxx

    GMC Member

  • New Member
  • 47 posts

Posted 03 November 2011 - 11:51 PM

Is it possible to use this to handle scores and achievements through Facebook's own APIs?

https://developers.f...com/docs/score/
https://developers.f...s/achievements/

Oh that is cool... I'll implement this in the next version of s:gm ;)
  • 0

#19 Joe H

Joe H

    GMC Member

  • GMC Member
  • 359 posts
  • Version:GM:Studio

Posted 07 November 2011 - 05:48 AM


Is it possible to use this to handle scores and achievements through Facebook's own APIs?

https://developers.f...com/docs/score/
https://developers.f...s/achievements/

Oh that is cool... I'll implement this in the next version of s:gm ;)



Looking forward to this :)
  • 0

Independent Games by Joe and Matt:
evg_logo_header_125h.png

Spoiler

#20 borut

borut

    Courage Wolf Productions

  • GMC Member
  • 1407 posts
  • Version:GM:Studio

Posted 09 November 2011 - 08:16 AM

amaizing job I must say!
  • 0

#21 john316

john316

    GMC Member

  • GMC Member
  • 21 posts

Posted 17 November 2011 - 12:56 AM

Have you created the pay dialog yet i would love to have this feature
  • 0

#22 xxskxx

xxskxx

    GMC Member

  • New Member
  • 47 posts

Posted 17 November 2011 - 06:47 PM

Have you created the pay dialog yet i would love to have this feature

Sorry I'm really busy atm. (school) But I'll try to implement the mentioned features this weekend
  • 0

#23 john316

john316

    GMC Member

  • GMC Member
  • 21 posts

Posted 19 November 2011 - 09:36 AM

thx so much!!! and goodluck with school

Edited by john316, 19 November 2011 - 09:37 AM.

  • 0

#24 Alert Games

Alert Games

    GMC Member

  • GMC Member
  • 1118 posts
  • Version:GM8

Posted 19 November 2011 - 08:17 PM

Very very nice. Well detailed documentation and easy to use code. I'm kinda jealous....

Though, I was trying to test the example game, and it would not finish loading. I tried it on 127.0.0.1 and also on my server. Both times the game would not finish loading.

The example app you have up works fine. The post without confirmation didnt work for me, but everything else seemed to.

Nice work so far
  • 0

#25 rucodemente

rucodemente

    GMC Member

  • GMC Member
  • 56 posts

Posted 22 November 2011 - 07:04 PM

Is it possible to load a user's profile pic into the game?
  • 0

#26 john316

john316

    GMC Member

  • GMC Member
  • 21 posts

Posted 03 December 2011 - 02:06 PM

any updates yet?!!!!!

Edited by john316, 03 December 2011 - 02:07 PM.

  • 0

#27 iSeiren

iSeiren

    www.worrall.pw

  • GMC Member
  • 633 posts
  • Version:GM:Studio

Posted 26 December 2011 - 07:38 PM

Doesnt work.
  • 0

Professional Mobile app Developer


#28 Alert Games

Alert Games

    GMC Member

  • GMC Member
  • 1118 posts
  • Version:GM8

Posted 26 December 2011 - 08:45 PM

yeah I never got an answer about my post. Maybe the version of GM I was using was outdated.

I'll edit my post if it is working.
  • 0

#29 iSeiren

iSeiren

    www.worrall.pw

  • GMC Member
  • 633 posts
  • Version:GM:Studio

Posted 26 December 2011 - 09:40 PM

yeah I never got an answer about my post. Maybe the version of GM I was using was outdated.

I'll edit my post if it is working.


I just compiled the example the OP provided and that just hung at the end of the loading bar.

I'd love to use this in my games, but it doesn't work : /.
  • 0

Professional Mobile app Developer


#30 xxskxx

xxskxx

    GMC Member

  • New Member
  • 47 posts

Posted 26 December 2011 - 10:00 PM

Doesnt work.

I hate posts like this. Please describe your problem (like in your 2nd post :P)
It's not working because you didn't read the manual... :/

From the SGM Tutorial.pdf :

If you want to test your game
Read „Create an app on Facebook“. And upload your game to your webspace.


And if you follow the instructions in "Create an app on Facebook.pdf" it should work ;)
I hope I could help you :D

Cheers

[Both documents are in the "How To" -Folder]
[Yes you need to upload your game to a webspace to test it... Facebook requires this :/ ]

Edited by xxskxx, 26 December 2011 - 10:01 PM.

  • 0

#31 iSeiren

iSeiren

    www.worrall.pw

  • GMC Member
  • 633 posts
  • Version:GM:Studio

Posted 26 December 2011 - 10:10 PM


Doesnt work.

I hate posts like this. Please describe your problem (like in your 2nd post :P)
It's not working because you didn't read the manual... :/

From the SGM Tutorial.pdf :

If you want to test your game
Read „Create an app on Facebook". And upload your game to your webspace.


And if you follow the instructions in "Create an app on Facebook.pdf" it should work ;)
I hope I could help you :D

Cheers

[Both documents are in the "How To" -Folder]
[Yes you need to upload your game to a webspace to test it... Facebook requires this :/ ]


I already made a Facebook app to try it, i already thought of that :P. Still doesnt work. The loading bar just gets to the end and stalls.


I totally forgot to add the text to the index.html.

My bad :P.

Edited by iSeiren, 26 December 2011 - 10:13 PM.

  • 0

Professional Mobile app Developer


#32 iSeiren

iSeiren

    www.worrall.pw

  • GMC Member
  • 633 posts
  • Version:GM:Studio

Posted 27 December 2011 - 12:41 AM

Too bad i dont have SSL on my hosting.
  • 0

Professional Mobile app Developer


#33 xxskxx

xxskxx

    GMC Member

  • New Member
  • 47 posts

Posted 27 December 2011 - 12:58 AM

Too bad i dont have SSL on my hosting.

Me, too...
You can still embed the game in your website...
But you can not embed it at Facebook. ( Facebook requires SSL since October 1st)
  • 0

#34 Alert Games

Alert Games

    GMC Member

  • GMC Member
  • 1118 posts
  • Version:GM8

Posted 27 December 2011 - 07:18 PM

And if you follow the instructions in "Create an app on Facebook.pdf" it should work ;)
I hope I could help you :D

Ah okay. I just find it weird that it does not finish loading if you don't have it set up for facebook. I would have expected it to error when loaded, but it did not finish loading. I think that could be more clear in the PDF, also because it is at the very end of the first PDF.

The issue is that the javascript is looking for FB to be defined, so it endlessly fails to find it. I wonder if there is an easier way to disable or enable it. That way you can test the game, and then enable FB support when you need to test it that way...

Also, thanks for the heads-up on the SSL requirement. I do have SSL, which is good, though i will have to implement it if i want to add FB support.

Good work here. Looking forward to any updates.
  • 0

#35 theweirdn8

theweirdn8

    Unrivaled Legend

  • GMC Member
  • 4108 posts
  • Version:GM8.1

Posted 06 January 2012 - 02:55 AM

Woah sounds interesting. Was this planend only for html5 or the mac and windows versions as well?
  • 0

[My milkshake brings all the boys to the yard]


2h2fg3c.png


#36 darkclower

darkclower

    GMC Member

  • New Member
  • 80 posts
  • Version:GM8

Posted 24 January 2012 - 05:29 PM

Stunning! I'm really looking forward for future updates.

Btw. As my CMD is broken, I would love to get a tutorial how to host it (Herokuapp wont work without CMD). Please :)

EDIT: Nvm. I just found out how to upload stuffs. 000webhost.com works fine :3

And does this work with any other GM than GM HTML5?

Edited by darkclower, 25 January 2012 - 09:32 AM.

  • 0
Posted Image
You can find me on Twitter. If you're in to that sort of thing. @JespGJ

I don't see the point of not doing it! (: Posted Image


#37 Liam Jacobs

Liam Jacobs

    GMC Member

  • New Member
  • 16 posts
  • Version:GM:HTML5

Posted 01 March 2012 - 03:34 AM

Stunning! I'm really looking forward for future updates.

Btw. As my CMD is broken, I would love to get a tutorial how to host it (Herokuapp wont work without CMD). Please :)

EDIT: Nvm. I just found out how to upload stuffs. 000webhost.com works fine :3

And does this work with any other GM than GM HTML5?



Hey dude! Could you upload an example of the index.html?
I could really use one! Thanks if you will!
  • 0

#38 adrian86

adrian86

    GMC Member

  • New Member
  • 3 posts
  • Version:Unknown

Posted 05 March 2012 - 03:10 PM

hi,
is Social:GM will work on Android?
  • 0

#39 beeproductions

beeproductions

    Helping gmc users

  • GMC Member
  • 1321 posts
  • Version:GM:Studio

Posted 13 March 2012 - 12:44 AM

nice..any updates soon?:D
  • 0

col-img1.pngcol-img4.png

bannersig.png

 

 


#40 goresoft

goresoft

    GMC Member

  • GMC Member
  • 136 posts
  • Version:GM:Studio

Posted 31 March 2012 - 09:53 AM

Any update about Social:GM ?
  • 0
My games : ASTRO n. z. o.--||||--Fly Chris Fly!!(Android)
 
my facebook page : Blue Vessel Games Fan Page!
 
my twitter : @bluevesselgames
 
my Website : Blue Vessel Games 

#41 darkclower

darkclower

    GMC Member

  • New Member
  • 80 posts
  • Version:GM8

Posted 01 April 2012 - 08:13 AM


Stunning! I'm really looking forward for future updates.

Btw. As my CMD is broken, I would love to get a tutorial how to host it (Herokuapp wont work without CMD). Please :)

EDIT: Nvm. I just found out how to upload stuffs. 000webhost.com works fine :3

And does this work with any other GM than GM HTML5?



Hey dude! Could you upload an example of the index.html?
I could really use one! Thanks if you will!


Sorry. I got it on some USB stick somewhere. I'll tell you if i find it! (:



  • 0
Posted Image
You can find me on Twitter. If you're in to that sort of thing. @JespGJ

I don't see the point of not doing it! (: Posted Image


#42 waxbulletgames

waxbulletgames

    GMC Member

  • New Member
  • 25 posts

Posted 08 June 2012 - 03:22 AM

somone contact me when he implements payments! I have ideas for "pro" versions and stuff
  • 0
<If you think Barack Hussein Obama doesn't deserve to be the president put this in your signature>
GENERATION 27: The first time you see this, copy it into your sig on any forum and add 1 to the generation. Social experiment.

#43 BearealisGames

BearealisGames

    GMC Member

  • GMC Member
  • 36 posts
  • Version:GM:Studio

Posted 09 July 2012 - 05:14 PM

Could Facebook scores be implemented? That would be awesome!
  • 0

#44 ben0

ben0

    GMC Member

  • New Member
  • 24 posts
  • Version:GM:HTML5

Posted 10 August 2012 - 05:11 AM

how's it going with in-app payments? having that would mean a whole new world for us developers
  • 0
Founder of marketJS, a platform to connect HTML5 game developers with large publishers. Find the right publisher, and sell distribution rights to your game.

In my spare time, I work on GM HTML5 projects, and help people troubleshoot problems.

#45 xxskxx

xxskxx

    GMC Member

  • New Member
  • 47 posts

Posted 13 August 2012 - 11:11 PM

Sorry I have really no time for developing social:gm. YoYoGames will also implement facebook to Game Maker Studio so I think it's not really useful to continue the development of sgm. But if someone wants to continue this facebook implementation you can feel free to use the existing code ;) (everything is in the sgm.js)
  • -1

#46 Maxinston

Maxinston

    Epic Phail

  • GMC Member
  • 1248 posts
  • Version:Unknown

Posted 08 October 2012 - 03:16 PM

Sorry I have really no time for developing social:gm. YoYoGames will also implement facebook to Game Maker Studio so I think it's not really useful to continue the development of sgm. But if someone wants to continue this facebook implementation you can feel free to use the existing code ;) (everything is in the sgm.js)


How can you get the users facebook email?
Thanks in advance

Edited by pepolshet, 08 October 2012 - 03:16 PM.

  • 0
<div align='center'><img src="http://img33.imagesh...igpic88821.jpg" border="0" class="linked-sig-image" />
A designer knows that he achieved perfection not when there is nothing left to add but when there is nothing left to take away.</div>

#47 mnm_manish

mnm_manish

    GMC Member

  • GMC Member
  • 63 posts
  • Version:GM8

Posted 06 February 2013 - 01:30 PM

If it works, you are great !! :D
  • 0
This is where i belong...

Posted Image

Download Here...
Gautam Buddha was born in Nepal not in India. I don`t know how to put image as link in signature...

#48 vidokas

vidokas

    GMC Member

  • GMC Member
  • 330 posts
  • Version:GM8

Posted 06 February 2013 - 03:26 PM

great!
  • 0

Most popular game in gmc forums would be...
Zombie shooter rpg in minecraft world with zelda as main character which can summon pokemons.


#49 beeproductions

beeproductions

    Helping gmc users

  • GMC Member
  • 1321 posts
  • Version:GM:Studio

Posted 24 September 2014 - 12:52 AM

Bro..I get this when trying to run or compile it..any ideas why?!?! Thanks in advance

error.jpg


  • 0

col-img1.pngcol-img4.png

bannersig.png

 

 





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users