PhoneGap应用程序上的Facebook应用程序设置 [英] Facebook app settings on PhoneGap application

查看:114
本文介绍了PhoneGap应用程序上的Facebook应用程序设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个phonegap应用程序,该应用程序使用主要的 facebook-plugin 进行连接.我还使用了phonegap构建来直接获取apk/ipa,而不生成android/ios项目.

I have a phonegap application that uses the main facebook-plugin for connecting. I'm also using the phonegap build to directly get the apk/ipa without generating an android/ios project.

但是,在开发人员的Facebook内部,我必须为我的应用程序完成一些设置,这些设置似乎需要比简单的phonegap构建更多的设置.我看到了一些为Android应用程序生成哈希键的教程,但是,由于我的javascript-phonegap代码中没有任何类,我应该在类名"字段(facebook将启动的活动)中填写些什么?

Inside the facebook for developers, however, I have to complete some settings for my application that seem to require more than the simple phonegap build. I saw some tutorial in generating the hash key for an android app, but, what should I complete into the "Class Name" field(the activity that facebook will launch) since I don't have any class in my javascript-phonegap code?

推荐答案

我提供了config.xml路径和配置的屏幕快照,您可以在其中找到软件包ID. `

I have provided screenshots of the config.xml path and the configuration where you will find the package id. `

如果您从命令行使用cordova,则Cordova android应用程序的默认活动类为CordovaApp.

If you are using cordova from command-line, the default activity class for Cordova android application is CordovaApp.

因此,在这种情况下,您在Facebook开发人员中的配置应如下所示.

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

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

您需要根据config.xml中的条目更新软件包名称

You need to update the package name as per the entry you have in the config.xml

如果您使用Adobe Phonegap Build Service来构建应用程序,则在这种情况下,默认活动名称是由您的应用程序名称的CamelCase表示法生成的. 所以Default Activity Test变成DefaultActivityTest

If you are building your app using the Adobe Phonegap Build Service,in that case the default activity name is generated by CamelCase notation of your application name. So Default Activity Test becomes DefaultActivityTest

因此,您在Facebook开发人员中的配置应如下所示.

So your configuration in Facebook developer should look like this.

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

您可以从以下站点反编译apk:

You can decompile your apk from the site below:

http://www.decompileandroid.com .

选择静态版本(Flash版本不起作用),上传后,您可以看到反编译的AndroidManifest.xml文件.

Choose the static version(the flash version was not working) and after uploading,you can see the decompiled AndroidManifest.xml file.

这是我对应用程序apk进行反编译后得到的.

This is what I got after decompiling my application apk.

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

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

这篇关于PhoneGap应用程序上的Facebook应用程序设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆