GLBasic forum

Main forum => GLBasic - en => Topic started by: Omadan on 2011-Apr-25

Title: Facebook and iPhone Games
Post by: Omadan on 2011-Apr-25
As we all know Facebook is a must to have imbedded in your applications for maximum exposure at no costs.
I want to do the following, hope there is help in here  ;/

I want to have a button in my App, that when the user clicks on it, it posts some specific data to his facebook account, scores etc. His Home page would be ideal. I've seen this in other apps and it really works to get some publicity out there.

How would you go about this, I am really not friends with facebook and not my cup of tea. Plugins etc.

Title: Re: Facebook and iPhone Games
Post by: Slydog on 2011-Apr-25
I've seen generic FaceBook code for posting to 'walls' and it is not that complicated.
It involves authenticating the user, then a call to post the message.
I've not seen the code implemented for GLBasic however.

Searching for 'facebook' in these forums I found these topics that may help you:

http://www.glbasic.com/forum/index.php?topic=5617.msg44084#msg44084 (http://www.glbasic.com/forum/index.php?topic=5617.msg44084#msg44084)
http://www.glbasic.com/forum/index.php?topic=4940.msg41066#msg41066 (http://www.glbasic.com/forum/index.php?topic=4940.msg41066#msg41066)
Title: Re: Facebook and iPhone Games
Post by: Omadan on 2011-Apr-30
Hey all, and thanks for quick reply Sly.

I've been reading about the Facebook stream.publish API and crap like that, but it tells me I need to set up a new app from within facebook. The option does not work, and its been like that for the past few weeks.

All I want is the following.

You get a good score in my game, then I append some text to your score for ex:

"You have played xxxx game and scored a total of 1000 points."

Then this is what I want to publish in that users facebook wall. I dont mind doing it from website.
eg. App - webpage - FB

Has anyone done this before, really need a step by step thing. I have tried but can't get it working and the option I highlighted above from FB is broken.

Facebook though I hate it, is essential guys.
Any pro advice?
Title: Re: Facebook and iPhone Games
Post by: Omadan on 2011-May-01
Don't wana be a pain but anyone has the steps for this. I've looked at most links but none really help to be honest.

Need to do this its very important.
Title: Re: Facebook and iPhone Games
Post by: MrTAToad on 2011-May-01
The problem is that Facebook (and Twiitter for that matter) have decided to use OAuth for all external postings.  Its an overly complicated system which looks a real pain to do.

Unfortunately OAuth isn't implemented directly in GLBasic, although there is a chance you could do a DLL for it and communicate through that.
Title: Re: Facebook and iPhone Games
Post by: Omadan on 2011-May-01
Hey Mr Toad. nice seeing you again :P

Thats no problem I am happy with posting to facebook via a Website. But the problem is how to do even that.

Remember I want a fixed msg with a score you have got, eg:

Mr TOad achieved this Score: 9999 in Game "xxxxxxxx", can you beat this.

Then site publishes this to facebook so all your friends can see. Simple idea yet a pain in the ****.

Title: Re: Facebook and iPhone Games
Post by: MrTAToad on 2011-May-01
Quote
Hey Mr Toad. nice seeing you again
Thanks!

Via a website would be the same principal - unfortunately that is way beyond me, although technically easier than getting the library system up and running :)
Title: Re: Facebook and iPhone Games
Post by: Omadan on 2011-May-01
Thanks mate I'll see what I can do