Specifying app_id and app_name for facebookConnect in a hybrid application with multiple devices in VS2013 and W8.1

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.

0
2

1, . , , issue FacebookConnect, CLI cordova. , : .

plugin.xml <preference name="APP_ID"> <preference name="APP_NAME"> <param name="APP_ID" value="<id of your app>" /> <param name="APP_NAME" value="<name of your app>" />

.

Java, . , , com.facebook.blah . , , eclipse.

CLI , <projectRoot>\bld\debug\platform\<yourplatform>, cordova.

+4

, , , , - param

in plugin.xml id , .

<preference name="APP_NAME"> 
to 
<param name="APP_NAME" value="<name of your app>" />
+1

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


All Articles