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

Facebook link with user #13

Open
iantearle opened this issue Apr 16, 2013 · 4 comments
Open

Facebook link with user #13

iantearle opened this issue Apr 16, 2013 · 4 comments

Comments

@iantearle
Copy link

Any ideas how to resolve this? Is it working for you?

[ERROR] : �� �Script Error = 'undefined' is not a function (evaluating
'parse.facebookLinkWithUser') at register.js (line 357).

@ewindso
Copy link
Owner

ewindso commented Apr 16, 2013

Yes, it works for me. Like:

  parse.facebookLinkWithUser({ 
    user: parse.currentUser, 
    permissions: ['email']  
  }, function(data) { 
   ....
  });

@iantearle
Copy link
Author

Strange all I get is that error. I even tried the twitter the same and get the same message. Just undefined. Shall try again in the morning.

@iantearle
Copy link
Author

I am still getting the following, have tried clean project, rebuilt from source everything I can think of:

[ERROR] : Script Error = 'undefined' is not a function (evaluating 'parse.facebookLinkWithUser({
[ERROR] : user: parse.currentUser,
[ERROR] : permissions: [ "email" ]
[ERROR] : }, function() {})')

Any ideas?

This is the script that is calling it:

$.registerBtnFacebook.addEventListener('click', function() {
    if(!parse.currentUser) {
        return;
    }

    parse.facebookLinkWithUser({
        user: parse.currentUser,   // most likely will pass in currentUser
        permissions: ['email']
    }, function(data) {

    });

});

@ewindso
Copy link
Owner

ewindso commented Apr 17, 2013

Seems like you might not be using the latest module code. Perhaps try deleting the module, recompile, etc.

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

2 participants