How to use phonegap-facebook-plugin under CLI 5.2 / PGB

浪尽此生 提交于 2019-12-08 13:24:54

问题


This question is related to the issue I opened few days ago https://github.com/Wizcorp/phonegap-facebook-plugin/issues/1173

  • Android Log: http://pastebin.com/iiTGP20G
  • IOS Log: http://pastebin.com/UShGmpNy

Summary: be able to use phonegap-facebook-plugin under CLI-5.2

As I have an important release to do and the repo owner is not responding, I'm trying to find a solution to build my application on PGB with official phonegap-facebook-plugin.

I'm looking for one of these:

  • Some tips or ideas to fix the error given to fork and fix
  • A way to see recent repo's forks (too many fork to be shown: https://github.com/Wizcorp/phonegap-facebook-plugin/network) maybe someone fix it...
  • A fork URL with a fix :)
  • Any useful suggestion...

回答1:


Solution:

You have to add (edit) you config.xml as it:

<preference name="android-minSdkVersion" value="16" />
<preference name="android-build-tool" value="gradle" />
<gap:plugin name="phonegap-facebook-plugin"  source="npm">
   <param name="APP_ID" value="XXXX" />
   <param name="APP_NAME" value="XXXXX" />
</gap:plugin>

Bonus: If you want to update to a new Facebook SDK juste change phonegap-facebook-plugin by cordova-plugin-facebook4 which refer to this fork https://github.com/jeduan/cordova-plugin-facebook4



来源:https://stackoverflow.com/questions/33526773/how-to-use-phonegap-facebook-plugin-under-cli-5-2-pgb

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!