ios-parse-titanium-module icon indicating copy to clipboard operation
ios-parse-titanium-module copied to clipboard

Facebook link with user

Open iantearle opened this issue 12 years ago • 4 comments

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).

iantearle avatar Apr 16 '13 21:04 iantearle

Yes, it works for me. Like:

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

ewindso avatar Apr 16 '13 21:04 ewindso

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 avatar Apr 16 '13 21:04 iantearle

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) {

    });

});

iantearle avatar Apr 17 '13 13:04 iantearle

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

ewindso avatar Apr 17 '13 16:04 ewindso