gpt4 book ai didi

Cordova Facebook插件: missing variables APP_ID, APP_NAME

转载 作者:行者123 更新时间:2023-12-04 04:55:02 24 4
gpt4 key购买 nike

当我做 :

cordova plugin add https://github.com/phonegap/phonegap-facebook-plugin.git

我得到错误:
Error: Variable(s) missing: APP_ID, APP_NAME

我必须在哪里配置这些变量?

最佳答案

查看该github存储库上的README.md文件的底部。您会看到它为您提供了安装插件并包括变量的说明:

plugman install --platform [PLATFORM] --project [TARGET-PATH] --plugin [PLUGIN-PATH] --variable APP_ID="[APP_ID]" --variable APP_NAME="[APP_NAME]"

where
[PLATFORM] = ios or android
[TARGET-PATH] = path to folder containing your phonegap project
[PLUGIN-PATH] = path to folder containing this plugin
[APP_ID] = Your APP_ID as registered on Facebook

Cordova CLI在后台使用Plugman,因此您可以使用它来插入变量名称,如下所示:
cordova plugin add https://github.com/phonegap/phonegap-facebook-plugin.git --variable APP_ID="my-app-id" --variable APP_NAME="my-app-name"

关于 Cordova Facebook插件: missing variables APP_ID, APP_NAME,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22355792/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com