i am working on a simple endless runner to post in wooglie.com.
it is almost done… but i want to post the score that the player makes on facebook.
can anyone help me with this? and are there any legal issues? thanks…
There’s a very simple way to do this without dealing with permissions or plugins. If all you want to do is post a high score and some info, you just need to make a Facebook app then use it to post via URL redirection. I’ve posted about it here, but the code is thus:
There are a few gotchas primarily dealing with the redirect parameter. Basically, if you want to redirect to an outside domain after posting, you need to register a website platform with your app, using the page to link to as the site URL, and then add that page’s domain to your app domains. Otherwise, just redirect to “http://www.facebook.com/”, as the redirect_uri is required.