Home Tutorials Download Beta Store Forum Documentation KnowledgeBase Wiki Blog

ShiVa3D

Return to Game programming

Post score to Facebook

All about the StoneScript

Post score to Facebook

Postby eried » 18 Jun 2012, 20:47

Anyway to quicly post the score to facebook? thanks!
eried
Fresh Boarder
Fresh Boarder
 
Posts: 15

Re: Post score to Facebook

Postby _geo_ » 18 Jun 2012, 22:24

A relatively fast way would be to include the facebook SDK (native code hookups) but use it only to retrieved the access token for your user (aka login/authentication).

Using the token you can post the score on facebook using shivas built in cache.add(https://graph.facebook.com/...) + facebooks https Graph API. The good thing is that you don´t rely too much on the crappy facebook sdk implementations out there (they mostly are buggy and/or incomplete).

The token usually is valid for quite some time, thus you can easily debug your facebook stuff directly in the edior by simply saving the token to fake a successful login process.

I have done this quite often and it served me well. Hope this helps :)
fly yes, land no | Modern Alchemists | Blog | MASH | MATWEEN-AI
User avatar
_geo_
Gold Boarder
Gold Boarder
 
Posts: 197
Location: Austria

Re: Post score to Facebook

Postby vklymenko » 18 Jun 2012, 22:54

http://www.stonetrip.com/developer/wiki/index.php?title=Facebook_iOS_SDK

this will help you ; )
instead "your message here!" in the code - you may put your scores and submit to facebook's wall.
User avatar
vklymenko
Platinum Boarder
Platinum Boarder
 
Posts: 759
Location: Europe

Re: Post score to Facebook

Postby eried » 20 Jun 2012, 06:20

Hey! thanks a lot
eried
Fresh Boarder
Fresh Boarder
 
Posts: 15


Return to Game programming