+7 votes

Does anyone have a something for Facebook integration in Godot ? If not I will start from scratch :)
Seems Fb it's a must for mobile developers..

in Engine by (530 points)

spent some time and integrated share via intent, only to find out that the newest Facebook versions doesn't allow you to share text using intents.. Seems to be working on anything else though.... bad Fb... me also newbie ..
Now I'll have to try the messy way with the FB sdk

Hi,
I was wondering if you did manage to get facebook integeration in godot.

Br

no, not a real integration. I have the : "share" menu showing up, the user can chose to share (an image) through everything that has this option on the phone, including facebook.

5 Answers

0 votes

Facebook integration is just an HTTP API (all of the SDKs are just wrappers around), so you can use the HTTPClient object to make API calls.

Maybe someone (or even yourself) can make a plugin and share it on the Asset Library.

by (800 points)
+6 votes

Hey! This is kind of an old question, but I thought I'd share my solution anyway.

I couldn't get an official FB api to work, but through this tutorial: http://www.exploreroute.com/simplest-way-to-share-score-on-facebook-with-unity/ I managed to use FB url redirection on Godot too. I have this function on Global:

func share_on_fb(app_id, link, quote, picture, name, caption, description):
  quote = quote.replace(" ", "%20")
  name = name.replace(" ", "%20")
  caption = caption.replace(" ", "%20")
  description = description.replace(" ", "%20")
  OS.shell_open(share_dict["http"] + "app_id=" + app_id + "&link=" + link + "&quote=" + quote + "&picture=" + picture + "&name=" + name + "&caption=" + caption + "&description=" + description + "&redirect_uri=" + share_dict["redirect_uri"])

And then I use it on the "Share" button. You have to get a FB Developer app working, though - it's nothing complicated, but you need the App ID.

by (311 points)
+3 votes

Old question, but I wrote tutorial how to implement FB login using facebpook login for devices: https://www.fullstackend.com/2017/02/godot-2-1-facebook-login/

by (22 points)
0 votes

https://github.com/DrMoriarty/godot-facebook
Did not tried it yet, but I will and I'll report back.

by (530 points)

This module seems to be no longer maintained and outdated. On GoDot master (3.2) it fails on the Python scrip. On 3.2.1 (latest stable) it fails due to gradle dependencies and duplicate class: Execution failed for task ':checkDebugDuplicateClasses'.

I'm the maintainer of this module. Now you can use NativeLib to install precompiled Facebook module for iOS and Android.
NativeLib you can get here https://github.com/DrMoriarty/nativelib or just download it from AssetLib.

+2 votes

Hi , You can use Facebook Plugin

If you're integrating this for iOS, you'll also need to implement login via Apple.
You can use the Apple Plugin for this.

  • Both plugins have detailed instructions for installation and use.
  • Both plugins work on the same methods and signals for convenience.
  • Both plugins support any version of Godot
by (162 points)
edited by
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.