Facebook link with user
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).
Yes, it works for me. Like:
parse.facebookLinkWithUser({
user: parse.currentUser,
permissions: ['email']
}, function(data) {
....
});
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.
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) {
});
});
Seems like you might not be using the latest module code. Perhaps try deleting the module, recompile, etc.