Wizcorp / phonegap-facebook-plugin

The official plugin for Facebook in Apache Cordova/PhoneGap
Other
1.91k stars 2k forks source link

Error: Invalid package.json #1295

Open stmake22 opened 8 years ago

stmake22 commented 8 years ago

why error?? default

lai32290 commented 7 years ago

I'm having the same problem

lai32290 commented 7 years ago

Sorry for my bad, just needed cloned this repository to my PC then replace /path/to/cloned/phonegap-facebook/plugin to it path and done

robagi commented 7 years ago

Sorry, can you be more specific?

Which path do I have to reference?

To the Android platform folder?

Because I already tried with all possible path and nothing

lai32290 commented 7 years ago

Of course.

$ ls
config.xml     hooks/    platforms/    plugins/    www/
$ ls
config.xml     hooks/    platforms/    plugins/    www/

$ cordova -d plugin add /home/myUser/Documents/Projects/phonegap-facebook-plugin --variable APP_ID="123456789" --variable APP_NAME="myApplication"

You need replace /home/myUser to your correct path