| View previous topic :: View next topic |
Tempest

Joined: 10 Dec 2008 Posts: 1242 Location: Vancouver, Canada
|
Posted: Sat Nov 07, 2009 11:39 am Post subject: Unity-Facebook Project |
|
|
|
Unity-Facebook Project
License
# License Information
Description
Integration of Unity and Facebook using mySQL, PHP and Facebook Platform. Tutorial for basic social network game features (friend lists, rankings).
Features:
- Complete sample game "ColorMatching" included.
- Unity project with game resources and Facebook integration resources clearly defined.
- Get User and Friend Data, including name and picture.
- Get Ranking (between friends, and overall app users)
- 1.1 Upgrade: Run in Unity Editor.
- 1.1 Upgrade: Better organization of web files.
- 1.1 Upgrade: GUI location is dynamic, instead of fixed.
Tutorials:
Set Up: Setting Up Your Database
Set Up: Web Files Explained
Set Up: Unity Files Explained
Version Updates
1.1 2010.01.27 - Link to Download
1.0 2009.11.17 - Link to Download
Questions, Comments and Suggestions
Let me know any questions, suggestions or comments you have by replying to this topic or sending me a private message via the forum. _________________ Nick Breslin, Tempest
dimeRocker/MondoCloud Developer
Blog | Twitter/KegOfGlory | Unity-Facebook | PHP Handler
Last edited by Tempest on Wed Jan 27, 2010 3:28 pm; edited 4 times in total |
|
| Back to top |
|
|
Martin Schultz

Joined: 10 Jan 2006 Posts: 1226 Location: Hamburg, Germany
|
Posted: Sat Nov 07, 2009 3:42 pm Post subject: |
|
|
|
Awesome. I'd be very interested in:
- How to write something from the user into his newsstream. Does it make a difference to post there text only or also text and an image for instance?
- Get friend list and user name/details
- authenticate with FB
- Is it possible to store some prefs in the FB account of the user?
That is the first stuff I'm very interested in. Awesome work you do, greatly appreciated!!! _________________ Play my games Hard Rock Racing and 4x4 Offroad Racing on Shockwave.com!
LinkedIn.com group for Unity game licensing |
|
| Back to top |
|
|
zumwalt

Joined: 18 Apr 2007 Posts: 1641
|
Posted: Sat Nov 07, 2009 4:48 pm Post subject: |
|
|
|
Please let us know if you used FBML or asp.net or another flavor to integrate. I personally use asp.net with facebook and integrate Unity through calls that way. I never could get Unity to work through FMBL, that over 5 months ago though. _________________ Hosted Server Solutions and Cloud Computing http://www.1and1.com/?k_id=21336950 |
|
| Back to top |
|
|
God at play

Joined: 03 Nov 2006 Posts: 105 Location: Des Moines, IA
|
Posted: Sat Nov 07, 2009 6:02 pm Post subject: |
|
|
|
Since you want this to be a living document, how about creating a Wiki page on unifycommunity? The first revision could just be a copy/paste of your PDF content, and then others could add/update it over time.
I'd also be interested in newsstream posting, along with being able to send requests/notifications of in-game actions (e.g. "you friend has just infected you as a zombie in the game Zombieland"). _________________ /////////////////////////
God at play - http://www.godatplay.com
Part of the Intuition collective
Portfolio
@godatplay
///////////////////////// |
|
| Back to top |
|
|
Tempest

Joined: 10 Dec 2008 Posts: 1242 Location: Vancouver, Canada
|
Posted: Sat Nov 07, 2009 11:53 pm Post subject: |
|
|
|
I will touch on the newstreams and alerts briefly by showing how your app can trigger such an action, though the configuration of those alerts (with pictures, without pictures, etc) is purely Facebook Platform.
I'll consider the wiki. I didn't mean quite that 'living', simply that I would update this PDF every couple of months.
Storing information is a tricky part of this, and it got trickier a few months back when Facebook put new restrictions on apps. To be safe, you can really any store the Facebook ID of a user and his or her friends. With this ID, though, you can store high scores, preferences, etc, _________________ Nick Breslin, Tempest
dimeRocker/MondoCloud Developer
Blog | Twitter/KegOfGlory | Unity-Facebook | PHP Handler |
|
| Back to top |
|
|
.Tom.
Joined: 30 Nov 2007 Posts: 657 Location: Hamburg, Germany
|
Posted: Sun Nov 08, 2009 2:39 am Post subject: |
|
|
|
Looking forward to that. I'm currently working on a Unity/Facebook framework for my own stuff, and I hope to learn a few things from you. Maybe later on, I can then add my own experiences. _________________
Unity-ready skyboxes - now also iPhone-optimized: Lemuria Skies
Better terrain texturing, tree and grass placement with Tom's Terrain Tools |
|
| Back to top |
|
|
Lukas

Joined: 16 Jan 2009 Posts: 169 Location: The Hague, The Netherlands
|
Posted: Mon Nov 09, 2009 10:44 am Post subject: |
|
|
|
I think its great you want to share the Facebook-Unity integration. As you know I ran across some troubles and it will definitely help a lot a people and save them quite some headache with the pitfalls there are.
I'm looking forward to your document! |
|
| Back to top |
|
|
Tempest

Joined: 10 Dec 2008 Posts: 1242 Location: Vancouver, Canada
|
Posted: Mon Nov 09, 2009 11:30 am Post subject: |
|
|
|
I've been working on a sample project, which will also have a small, limited, but expandable, API for which others can use to integrate Facebook with their apps. _________________ Nick Breslin, Tempest
dimeRocker/MondoCloud Developer
Blog | Twitter/KegOfGlory | Unity-Facebook | PHP Handler |
|
| Back to top |
|
|
DrHotbunz

Joined: 14 Feb 2009 Posts: 315 Location: Multiplayer Baseball Online
|
Posted: Tue Nov 10, 2009 1:08 am Post subject: |
|
|
|
I would like it to be on the wiki so that its there for the future. Thanks for sharing your knowledge!! _________________ MBO BaseballTeam Leader
Open Source MMO Baseball - Download the entire MBO Source v0.2 @ http://www.mmobaseball.org |
|
| Back to top |
|
|
Ethan

Joined: 02 Jan 2008 Posts: 167 Location: Munich (Germany)
|
|
| Back to top |
|
|
Tempest

Joined: 10 Dec 2008 Posts: 1242 Location: Vancouver, Canada
|
Posted: Tue Nov 10, 2009 10:56 am Post subject: |
|
|
|
It will eventually be on the wiki. Been working on it for a couple days. Got most of it working in Safari, having some issues with Firefox, but I'll get it down. _________________ Nick Breslin, Tempest
dimeRocker/MondoCloud Developer
Blog | Twitter/KegOfGlory | Unity-Facebook | PHP Handler |
|
| Back to top |
|
|
.Tom.
Joined: 30 Nov 2007 Posts: 657 Location: Hamburg, Germany
|
Posted: Tue Nov 10, 2009 12:01 pm Post subject: |
|
|
|
I have my stuff working on Firefox. If you want to compare notes, send me a mail. _________________
Unity-ready skyboxes - now also iPhone-optimized: Lemuria Skies
Better terrain texturing, tree and grass placement with Tom's Terrain Tools |
|
| Back to top |
|
|
Tempest

Joined: 10 Dec 2008 Posts: 1242 Location: Vancouver, Canada
|
Posted: Thu Nov 12, 2009 2:04 pm Post subject: |
|
|
|
Here's a WIP shot from the app. It queries for your UserID, then your Info, then your Photo. The User information is displayed on the right.
The next query will be for friends who use this same app. I hit a couple of bumps (rather big ones...) which set me back a couple of days. Just so everyone is aware, I will be providing all the source code for this project.
I have a small Color Matching game intended so I can demonstrate achievements/scoring as well. _________________ Nick Breslin, Tempest
dimeRocker/MondoCloud Developer
Blog | Twitter/KegOfGlory | Unity-Facebook | PHP Handler |
|
| Back to top |
|
|
turi

Joined: 11 Dec 2008 Posts: 14
|
Posted: Thu Nov 12, 2009 6:49 pm Post subject: very cool ! |
|
|
|
Wow! Thanks Tempest, you're doing a great job for the community !
Turi _________________ http://www.turicacciatore.com |
|
| Back to top |
|
|
Tempest

Joined: 10 Dec 2008 Posts: 1242 Location: Vancouver, Canada
|
|
| Back to top |
|
|