PhoneGap add Facebook Connect plugin

后端 未结 2 1572
轮回少年
轮回少年 2021-01-15 03:07

I want to add com.phonegap.plugins.facebookconnect to my PhoneGap build android app but I unable to do it. In doc site they say to add



        
2条回答
  •  灰色年华
    2021-01-15 03:57

    Answer below is for phonegap-build. Disregard.

    1. Add the below to your config.xml and ensure you place your config.xml in the root folder with your index.html file:

      
          
          
      
      
    2. Add the below to the of your index.html file and every .html file that you want to access the plugin scripts:

      
       
       
      
    3. Read and follow the documentation located here. Be sure to pay attention to the paragraph titled "Facebook Requirements and Set-Up".

    4. Once complete, upload your zipped project to build.phonegap.com and wait for your project to be compiled.

    Notes:

    • You should only have 1 config.xml file in the root of your project.
    • Do not add the phonegap.js, cdv-plugin-fb-connect.js file or facebook-js-sdk.js files to the root of your project. Phonegap Build will handle that for you.

提交回复
热议问题