Facebook Android v1.0 (Outdated)

GeorgeN

  • Posts: 859
THE EXTENSION IS NOW AVAILABLE HERE(iOS+Android):
http://community.stencyl.com/index.php/topic,26710.0.html





Hello there!

I've made a partial Facebook Android extension after HypFacebook library from GitHub.
You will find in attach the extension and a guide. It may look hard but it's not. The extension needs some work to upgrade Android SDK(because Facebook SDK needs "annotations.jar" file).

For now you can login, logout, check if the user is already logged, and submit a full feed dialog.

This is the feed dialog(call to actions link included) :



Shout feedback/bugs/complains are appreciated!

PS: It can work for IOS but I don't have any kind of Apple device to test on. You can give it a try (here is the guide for IOS integration: https://github.com/hyperfiction/HypFacebook ).

The Android part of the extension should work on OpenFL now. David(RedEvo) ported this and also he is working on doing the iOS part. But please because both of us are very busy we didn't had much time to fully test it.

George and David.

Check the full mobile extension for iOS and Android here:
http://community.stencyl.com/index.php/topic,26710.0.html





« Last Edit: November 20, 2013, 04:04:03 pm by rob1221 »

mbuist

  • Posts: 252
Nice. Especially the full feed dialog.

I will give this a try in my next game
Visit my arcade site - http://www.tincubegames.com/
Read all about my games at - http://www.tincubemedia.nl
Please follow Tincube Media on Facebook - http://www.facebook.com/tincubemedia

As a final touch.. GOD created the Dutch


GeorgeN

  • Posts: 859
Awesome, I'll try with iOS at the weekend!

You have to look on the guide from github and it might need some changes in code.

zawrot13

  • Posts: 783
Thanks. I will add this one soon to my allmost finished game. Have You allready thought about the hi scores compare with the facebook friends? It is also explain how to use facebook SDK on facebook site but I don't know how to use it as Stencyl extension.

GeorgeN

  • Posts: 859
Thanks. I will add this one soon to my allmost finished game. Have You allready thought about the hi scores compare with the facebook friends? It is also explain how to use facebook SDK on facebook site but I don't know how to use it as Stencyl extension.
I explained everything in the pdf.At what part do you need assistance?

For the moment is just the feed dialog.In the future if i will make a game that needs the score api I will take the effort to implement that .

Joraanpe

  • Posts: 288
Seems like an amazing apport george! Just would like to ask you if its possible for you to add a quick step by step video of how to implement it, ive never dealed with direct custom coes at stencyl, much less with external sdks of fb... Already readed your ios pdf but still feeling kinda lost, so would be amazing ive i could watch you doing it and follow you on the way!

Would strongly appreciate it...

Thanks again for it!

GeorgeN

  • Posts: 859
Is just for Android. For IOS i've just linked the guide from the guy that wrote this Haxe library.

If you are interested to see a video guide for Android I might make one when I will have some time. In my upcoming Android game I made a Share button at the end of the level that post on user timeline a message with how good he or she finished the level.

Joraanpe

  • Posts: 288
Amazing, would be awsome to see it! Let us know when you make the video :)
Best wishes for your project!

vikingpotato

  • Posts: 854
Awesome! i read the pdf, the steps appear to be well described and should be possible for a block-only stencyler like me :)

A more basic question, what exactly can one by using this ? I need an 'introduction to facebook support for game developers' somehow.. what comes to my mind is - share scores with friends, invite friends to app maybe.. a facebook application for a game and a facebook Page for a game are different right? Can this let people like my facebook page when they play the game ?

GeorgeN

  • Posts: 859
About all Facebook dialogs: https://developers.facebook.com/docs/dialogs/

Atm the extension have Login Dialog and Feed Dialog. Other kind of dialogs can be implemented.

The thing with sharing scores on timeline is this: https://developers.facebook.com/docs/games/opengraph/

OK let me give you an example how I used this in my game.
It's a puzzle game. At the end of each level a Share button appears. When the player tap on that, if is not logged on facebook a login dialog appears, if is already logged then the Feed dialog appears. On that feed dialog he can write something(bla bla) and then he hit Post and the feed dialog appears on his timeline.


What you see in the image is a feed dialog posted on my timeline. It is something like a link. If someone press on it then the store page(google play or whatever you set up) will open.

It has the normal Like, Comment and Share buttons. And that Like Dakina Games is a custom link(or aka call to action) that will open my developer Facebook Page.

1MrPaul1

  • *
  • Posts: 1268
login, like, this is all great, but can you explain how to upload a game on facebook? :-)

vikingpotato

  • Posts: 854
login, like, this is all great, but can you explain how to upload a game on facebook? :-)
mnn this extension is for android games, allowing Facebook connectivity

GeorgeN

  • Posts: 859
login, like, this is all great, but can you explain how to upload a game on facebook? :-)

You can find all the information you want about Facebook here: https://developers.facebook.com

1MrPaul1

  • *
  • Posts: 1268
I looked there, but lost.... :) my english is poor and it's hard to read so complex things... So, I thought you can tell in couple words how to do this.
Anyway, great extension, I would like to use it.