Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

facebookConnectPlugin is not defined at Scope.$scope.facebookSignIn #5

Open
mpliang opened this issue Dec 10, 2015 · 5 comments
Open

Comments

@mpliang
Copy link

mpliang commented Dec 10, 2015

cloned the project, npm install, ionic serve and got this error... am i missing something?

@djabif
Copy link
Contributor

djabif commented Dec 11, 2015

where are you testing it? You should test it on a real device or on an emulator.

@mpliang
Copy link
Author

mpliang commented Dec 14, 2015

ive tested in browser and on the xcode emulator, both dont work.

@djabif
Copy link
Contributor

djabif commented Dec 21, 2015

did you install wizcorp plugin as stated on the documentation? do you have the following file in your code: plugins/com.phonegap.plugins.facebookconnect/facebookConnectPlugin.js ?

@Sentence
Copy link

Sentence commented Feb 4, 2016

+1 ReferenceError: facebookConnectPlugin is not defined when tap on login btn with this repo.

Tested on Samsung Tab4 (SM-T535, Android 5.0.2), Samsung Galaxy S2 (Android 4.1.2) and Chrome browser ( 48.0.2564.97)

You need to write to readme that you need install the plugin.

  • Can check plugin installation status:
ionic plugin list

cordova-plugin-console 1.0.2 "Console"
cordova-plugin-device 1.1.1 "Device"
cordova-plugin-splashscreen 2.1.0 "Splashscreen"
cordova-plugin-whitelist 1.0.0 "Whitelist"
ionic-plugin-keyboard 1.0.8 "Keyboard"
  • Clone the plugin
git clone https://github.com/Wizcorp/phonegap-facebook-plugin.git
  • Then install the plugin
cordova -d plugin add path-to-plugin/phonegap-facebook-plugin --variable APP_ID="0123456789" --variable APP_NAME="AppName"
  • Check again the plugin list:
ionic plugin list

cordova-plugin-console 1.0.2 "Console"
cordova-plugin-device 1.1.1 "Device"
cordova-plugin-splashscreen 2.1.0 "Splashscreen"
cordova-plugin-whitelist 1.0.0 "Whitelist"
ionic-plugin-keyboard 1.0.8 "Keyboard"
phonegap-facebook-plugin 0.12.0 "Facebook Connect"

And works like charm on devices but not in browser. Cheer!
(So you can close this topic after readme update/upgrade.)

@lordlothar99
Copy link

lordlothar99 commented Jun 22, 2016

got same issue (with ionic serve, not tested yet on real device) :

0     098515   error    ReferenceError: facebookConnectPlugin is not defined
    at Scope.$scope.facebookSignIn (http://localhost:8100/js/controllers.js:61:5)
    at fn (eval at compile (http://localhost:8100/lib/ionic/js/ionic.bundle.js:21972:15), <anonymous>:4:233)
    at http://localhost:8100/lib/ionic/js/ionic.bundle.js:57514:9
    at Scope.$eval (http://localhost:8100/lib/ionic/js/ionic.bundle.js:24673:28)
    at Scope.$apply (http://localhost:8100/lib/ionic/js/ionic.bundle.js:24772:23)
    at HTMLAnchorElement.<anonymous> (http://localhost:8100/lib/ionic/js/ionic.bundle.js:57513:13)
    at HTMLAnchorElement.eventHandler (http://localhost:8100/lib/ionic/js/ionic.bundle.js:12098:21)
    at triggerMouseEvent (http://localhost:8100/lib/ionic/js/ionic.bundle.js:2865:7)
    at tapClick (http://localhost:8100/lib/ionic/js/ionic.bundle.js:2854:3)
    at HTMLDocument.tapMouseUp (http://localhost:8100/lib/ionic/js/ionic.bundle.js:2927:5)

how to fix this on emulator/ ionic serve ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants