BASIC

Author Topic: Facebook and iPhone Games  (Read 1510 times)

Offline Omadan

  • Dr. Type
  • ****
  • Posts: 374
    • View Profile
    • Top Arcade Apps Games
Facebook and iPhone Games
« 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.

Top Arcade Apps - Best game for mobiles and computers

http://www.toparcadeapps.com

Offline Slydog

  • Prof. Inline
  • *****
  • Posts: 930
  • KodeSource
    • View Profile
    • KodeSource
Re: Facebook and iPhone Games
« Reply #1 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=4940.msg41066#msg41066
My current project (WIP) :: TwistedMaze <<  [Updated: 2015-11-25]

Offline Omadan

  • Dr. Type
  • ****
  • Posts: 374
    • View Profile
    • Top Arcade Apps Games
Re: Facebook and iPhone Games
« Reply #2 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?
Top Arcade Apps - Best game for mobiles and computers

http://www.toparcadeapps.com

Offline Omadan

  • Dr. Type
  • ****
  • Posts: 374
    • View Profile
    • Top Arcade Apps Games
Re: Facebook and iPhone Games
« Reply #3 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.
Top Arcade Apps - Best game for mobiles and computers

http://www.toparcadeapps.com

MrTAToad

  • Guest
Re: Facebook and iPhone Games
« Reply #4 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.

Offline Omadan

  • Dr. Type
  • ****
  • Posts: 374
    • View Profile
    • Top Arcade Apps Games
Re: Facebook and iPhone Games
« Reply #5 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 ****.

Top Arcade Apps - Best game for mobiles and computers

http://www.toparcadeapps.com

MrTAToad

  • Guest
Re: Facebook and iPhone Games
« Reply #6 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 :)

Offline Omadan

  • Dr. Type
  • ****
  • Posts: 374
    • View Profile
    • Top Arcade Apps Games
Re: Facebook and iPhone Games
« Reply #7 on: 2011-May-01 »
Thanks mate I'll see what I can do
Top Arcade Apps - Best game for mobiles and computers

http://www.toparcadeapps.com