A downloadable project for Android

Download NowName your own price

Started from December 2019, this project will become free. it's also means no support will be given.


Here it is, a template that help you to connect you Construct 2 game with Facebook and Firebase.

Demo (web) / (Downloadable APK Demo available below)

After you download this template. You can combine it with my other template that use Firebase. Simply change the Auth Event Sheet.


WHAT'S INCLUDED?


  • A sample CAPX with include-able event sheet
  • A tutorial of how to configure the project, including Firebase Setting, Facebook Developer Setting, Export to mobile etc.

INSTRUCTIONS


This template uses the following plugin :

This zip contain plugins above, but if you want the recent version, you can download them manually.

Attention! Make sure you have understand how to make a firebase project. Follow this tutorial to get started using Firebase  in Construct 2.

The rest of instruction already included in the zip.

StatusReleased
CategoryOther
PlatformsAndroid
Rating
Rated 5.0 out of 5 stars
(2 total ratings)
Authoragittm
Tagsaccount, Construct 2, facebook, firebase, scirra, Project template

Download

Download NowName your own price

Click download now to get access to the following files:

id.agittm.facebookfirebase-1.1.apk 3 MB
Sample Cordova Project
External
FacebookFirebase-1.2.zip 949 kB

Comments

Log in with itch.io to leave a comment.

Hi! I´ve recently bought the tutorial. I see you added the Facebook plugin. After logging in using you example, will I be able to use the C2 facebook plugin, even in android? i need to submit and get scores, and stuff like that. Thank you!

Hello, I currently use this plugin https://shatter-box.com/download/cocoon-social-for-facebook/ plugin to connect with facebook, but it does not provide:

* profile picture;
* username.

I wonder if you can develop these two options in this plugin.

Hey, I bought the tutorial, but well I got stuck in the compilation of the app. I'm using cocoon for this. I tried and tried in so many ways adding and removing any installeable plugins in the platform, but nothings seems to work. So I came here to ask you, how did you do the apk to make the login and everything work?

Hi, I'm sorry but I never use cocoon for build this project. But I'll ask you some question :

  1. Are you sure you have installed the correct plugin?
  2. Have you tried to debug the app? You can find the detail of error when debug an APK.
  3. Are you sure there's no error in server-side (your Facebook developer app page), I heard that recently Facebook only allows https protocol to call their API.

If you don't mind, you can try to build the APK locally using Cordova (like what I did).

Hi, thanks your prompt answer.

Yes I have installed the correct plugin, and I tried the debugging but seems like the facebook popup isn't opening at all.

Also I just set the Facebook developer app, but as you say it just works with the device or with https protocol. So locally this doesn't work.

Do you have a guide or something to make the APK with cordova with all the things needed to make it work? thanks you for everything.

Deleted 5 years ago
(+1)

Got the thing worked :D thanks for your hard work in the event sheet

(+1)

Hi, sorry for the late reply. 

Really? Glad to hear them. Also thanks for purchased this product.

Tell me if there's anything that you don't understand, or anything that will improve this product.

Dude, you  have to check and update one line for made it work, for example in the javascript, about the permissions, right now facebook is screwing with everything. Also update the guide to install and make the facebook dev app work correctly, and so far these are my feedbacks. Nice work here, thx :D

(1 edit)

maaf nih mas masih stuk,
permintaan terakhir nih kalo boleh minta zip in folder yang berisikan config.xml dan lain2 yang tinggal build, saya mau cek salah saya dimana
terima kasih

Sample Cordova Project sudah saya tambahkan ke halaman project ini ya.

Mas saya build sudah sukses namun pas di klik tidak terjadi apa2.

Bisa di copy kan contoh config.xml nya?

https://pastebin.com/4VtP0mZ4

mas mau tanya ini tidak bisa di build apk pake cordova cli? saya coba build error

 uses-sdk:minSdkVersion 15 cannot be smaller than version 16 declared in library [:CordovaLib] D:\Cordova\facebookv2\platforms\android\CordovaLib\build\intermediates\manifests\full\debug\AndroidManifest.xml as the library might be using APIs not available in 15

        Suggestion: use a compatible library with a minSdk of at most 15,
                or increase this project's minSdk version to at least 16,
                or use tools:overrideLibrary="org.apache.cordova" to force usage (may lead to runtime failures)

sepertinya error nya sudah cukup jelas, coba buka

platforms\android\AndroidManifest.xml

terus cari baris

<uses-sdk android:minSdkVersion="15"

ubah jadi 16

Hi, this projects works fine whenever I test it in preview.  However, when I export and upload to my website, I get the following error "Can't Load URL: The domain of this URL isn't included in the app's domains. To be able to load this URL, add all domains and subdomains of your app to the App Domains field in your app settings."  I have tested using Construct FB plugin and never got this message.  Any ideas why this might be happening?

As what the error said, "add all domains and subdomains of your app to the App Domains field in your app settings."

Just go to Facebook Developer Page -> Setting, make sure you have added Web Platform, change its value with your site's URL.

Also go to Facebook Login product and add your domain/subdomain to OAuth Valid URL field.

Hi. Just in case you missed my reply on c2 site. I just want to ask if it is possible to switch to another account. I've checked your demo but there was none.
Thumb ups for this nice template btw
cheers

yes it is possible, just sign out from your facebook account and re-login using other account.