How to use Phonegap Facebook Plugin for Android (Cranberry's Plugin)

1

Index

Stats

5,798 visits, 11,780 views

Tools

Translations

This tutorial hasn't been translated.

License

This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

Published on 25 Dec, 2014. Last updated 19 Feb, 2019

ADDING FACEBOOK IDs IN THE EXAMPLE CAPX

Before getting into Capx, add the Phonegap Facebook Plugin into your local Construct 2 Folder. To learn how to add plugins Click here.

Now, Open the Example Capx "example_phonegapfacebook_requires id" download it from the above mentioned link. In this example capx, everything has been added already except the Facebook App name and ID which we have to get it from our newly created test Facbook app. So in the projects tab(right side on your construct window) select PhonegapFacebook. Now copy your Facebook App Name and App ID from FB and paste it here on the properties Window (left side on your construct window).

CONSTRUCT 2 EXPORT AND INTEL XDK IMPORT

In Construct 2, Click File --> Export Project --> Select Cordova . In Export Options assign a path for Exporting Files to and then Click Next and then Export.

Once the export is completed, open Intel XDK, if you don't have already, Download it here .

Once the Intel XDK is downloaded and installed, run it. If you are new to Intel XDK, register and then log-in. Once you are inside Intel XDK, go to the left top, click XDK Projects, then Click START A NEW PROJECT and then select Import an Existing HTML5 Project. Now select your project to exported location and give a name to this XDK project as shown below.

Click XDK PROJECTS again In the Left Top and Click on Build setting on the Right side. Under ANDROID Tab, a new App ID, App Description and Author.

  • 0 Comments

Want to leave a comment? Login or Register an account!