Facebook app settings in PhoneGap app

I have a phonegap application that uses the main facebook-plugin to connect. I also use the phonegap build to directly get apk / ipa without creating an android / ios project.

Inside facebook for developers, however, I need to make some settings for my application, which seem to require more than a simple phone layout layout. I saw some tutorial on creating a hash key for an Android application, but what do I need to fill in the "Class name" field (the activity that facebook launches), since I don't have any class in my javascript phone?

+6
source share
2 answers

I have provided screenshots of the config.xml path and the configuration in which you will find the package identifier. `

If you are using a command line cord, the default activity class for the Cordova android application is CordovaApp.

So, in this case, your configuration in the Facebook developer should be like this.

Package Name: com.phonegap.helloworld Default Activity Class Name: com.phonegap.helloworld.CordovaApp 

You need to update the package name according to the entry in the config.xml file

enter image description here

If you create your application using the Adobe Phonegap build service, in this case the default activity name is created as CamelCase notation of your application name. So, the Default Activity Test becomes the DefaultActivityTest

So your Facebook developer configuration should look like this.

 Package Name: com.phonegap.randomPackage Default Activity Class Name: com.phonegap.randomPackage.DefaultActivityTest 

enter image description here

You can decompile your apk from the site below:

http://www.decompileandroid.com .

Select the static version (the flash version does not work), and after downloading it you can see the decompiled AndroidManifest.xml file.

This is what I got after decompiling the apk application.

http://www.decompileandroid.com/complete/182864?key=ecb3cec5a9b1418afe5d67f7151b518f

enter image description here

+11
source

If you are creating tools for the Android application, you indicate your "activity name" during the creation of the project. This name is your class name.

Enter the package name: com.example.proj and Enter the class name: project name and Enter the key hash

0
source

Source: https://habr.com/ru/post/977323/


All Articles