Specifying app_id and app_name for facebookConnect in a multi-device hybrid app in VS2013 & W8.1

后端 未结 2 1316
死守一世寂寞
死守一世寂寞 2021-01-28 12:39

I\'ve been banging my head on this one for a while now.

How do I specify the app_id and app_name when trying to use the facebookConnect plugin in a Multi-Device Hybrid a

相关标签:
2条回答
  • 2021-01-28 13:17

    What you probably miss is the renaming of the element from preference to param

    in plugin.xml change preference to param for app name and app id an also enter their value.

    <preference name="APP_NAME"> 
    to 
    <param name="APP_NAME" value="<name of your app>" />
    0 讨论(0)
  • 2021-01-28 13:23

    I'd recommend going with method 1 since it provides greater flexibility to configure your plugin. That being said, what you are running into is a common issue with the FacebookConnect plugin when it is added manually instead of using the cordova CLI. To add the app ID and app name, do the following as documented here.

    In plugin.xml, find the below lines <preference name="APP_ID"> <preference name="APP_NAME"> and modify them to <param name="APP_ID" value="<id of your app>" /> <param name="APP_NAME" value="<name of your app>" />

    This will get you past the error.

    However, the plugin is written in Java and the references are not precompiled. So, you will run into issues like com.facebook.blah not found. To get past these additional compilation issues, follow the instructions here, which let you build the plugin dependencies without eclipse.

    To use the CLI to install the plugin, you need to run the commands from <projectRoot>\bld\debug\platform\<yourplatform> where the cordova projects are created.

    0 讨论(0)
提交回复
热议问题