For several seconds I was banging my head about it.
How to specify app_id and app_name when trying to use the facebookConnect plugin in a hybrid application with multiple devices in Visual Studio 2013?
If I create a new solution using the CLI approach; something similar to:
cordova create MyTest <blah> <blah> <blah>
Perhaps I can use the CLI to add the plugin with a command like this: (Untested and the command may be a little wrong)
cordova plugin add com.phonegap.plugins.facebookconnect
BUT...
How to add it when I created the Mutli-Device hybrid application directly from Visual Studio?
I tried 2 approaches to fix this:
Method 1:
This seems to “work”, but then explodes:
Variable(s) missing: APP_ID, APP_NAME
Method 2:
- Open the config.xml file
- Add the following tag: vs: feature:
- Compile / assemblies
<vs:features>
<vs:feature>com.phonegap.plugins.facebookconnect</vs:feature>
This method also seems to "work" by showing a line in the assembly output window:Calling plugman.fetch on plugin "com.phonegap.plugins.facebookconnect"
But then he bombs too much with an ever annoying one:
Variable(s) missing: APP_ID, APP_NAME
Can someone PLEASE tell me where to add these two variables so that things are built ???
I have values available.
I cannot use the CLI to install this plugin in my solution, because I get an error, for example:
Current working directory is not a Cordova-based project
Thanks for any help you can offer.