Facebook connect plugin is not working in android

2020-02-16 02:47发布

问题:

i have a plugin

<gap:plugin name="com.phonegap.plugins.facebookconnect" version="0.9.0"> <param name="APP_ID" value="998855950166112" /> 
<param name="APP_NAME" value="abc" /> 
</gap:plugin>

This plugin is for fb connected i have issue that its working on ios but not in android. i have search in phonegap repository and and also in npm repository but i didn't get. is this issue for not updating plugin.code is perfect because its works fine on ios. i have search update of plugin but didn't get it. give me guidance for finding update of plugin i am new bee in phonegap so i didn't get any.

回答1:

That plugin is deprecate. This is the 5th time tonight. Don't you guys check your sources.

I am posting this link with the hope you will read the entire document.

Top Mistakes by Developers new to Cordova/Phonegap

In fact your error was

11. You need to get your plugins from NPM now.

How did I figure this out? I did a google search of your plugin: com.phonegap.plugins.facebookconnect

About three (3) links down is your plugin: FacebookConnect

The documentation says

REPOSITORY IS NOW DEPRECATED!!!

Please go here

READ THE DIRECTIONS CAREFULLY. This is an ugly plugin. The correct links are:

  • github
  • npm

Your new plugin setting is:

<gap:plugin name="cordova-plugin-facebookconnect-orlando" source="npm" version="0.11.0">