Using the SVN Facebook client as of today.
; Information added by drupal.org packaging script on 2008-12-20
version = "5.x-2.x-dev"
project = "fb"
datestamp = "1229731533"

Missing argument 1 for FacebookRestClient::pages_isAppAdded(), called in /var/www/tv/content/modules/fb/fb_user.module on line 48 and defined in /var/www/tv/content/sites/default/facebookapi_php5_restlib.php on line 1034.

In the fb_user.module, the function name is "user_isAppAdded()" ... I could not find that function in the FB client code. I changed it to the above. "isAppAdded()" also requires a parameter, page_id, but I'm not sure which page ID it is looking for.

Comments

Dave Cohen’s picture

Will fix this when I have time. on vacation now. It has been reported elsewhere in the queue...

temporary workaround is to use an older facebook api.

NigelC’s picture

user_isAppAdded has been deprecated from the facebook api.

For a short term fix add a function user_isAppAdded to the facebook api that calls users_isAppUser:

public function &users_isAppAdded($uid=null) {
return $this->users_isAppUser($uid);
}

Its probably ok to rename all instances of user_isAppAdded with user_isAppUser, but I didn't have the time to really make a decision if that was the right thing to do (and it would make merging official d4f releases a pain - this was the minimal change). It seems to work for the functionality I am using.

Dave Cohen’s picture

I've been using the facebook APIs checked out of their subversion repository under "redesign-changes". At some point in the past this was the only way to use the updated API. Now I'm confused as to which is the proper API to use.

Dave Cohen’s picture

Status: Active » Fixed

I had been using an out of date client lib. Just checked in a fix. Thanks for catching this.

Dave Cohen’s picture

I've made this change, but now I find that calls to users_isAppUser() return NULL when they should return TRUE. Is this just me? I suspect a bug in facebook's code.

aterchin’s picture

I got the error
Fatal error: Call to undefined method FacebookRestClient::users_isAppUser() in /home/reptilew/public_html/drupal1wed/sites/all/modules/fb/fb_user.module on line 48

after trying out the facebook connect button i made. added code from #2
but still get the same error when i try to access the page i put the connect code in.

Also get logged out automatically when i try to access list of users (admin/user/user) andduplicate entry warning:

user warning: Duplicate entry '1544420687@facebook' for key 2 query: INSERT INTO users (name, pass, init, status, uid, created, access) VALUES ('1544420687@facebook', 'xxxxxxxxxxpasswordxxxxxxxx', '1544420687@facebook', 1, 101, 1232726880, 1232726880) in /home/reptilew/public_html/drupal1wed/includes/database.mysql.inc on line 174.
user warning: Duplicate entry '' for key 2 query: INSERT INTO users (uid, created, access) VALUES (102, 1232726881, 1232726881) in /home/reptilew/public_html/drupal1wed/includes/database.mysql.inc on line 174

then i log in as admin and i can access everything until i go to the page where my button should be. That's where i get the error and subsequently logged out.

So then I login again as admin, delete the user 1544420687@facebook, and logout. Upon logout, I get redirected to facebook's homepage.

Back to my site (still logged out) to try the connect button as a anonymous user, which just gives me the error when I go to the connect page.

got an error in fb module on line 57, similar to the one at the top of this post, a couple times, which i've been trying to reproduce. sometimes i've gotten switched from admin to user 1544420687@facebook, and i believe that's when i got the line 57 message, when i'm logged in as that and tried to access the connect page.

Dave Cohen’s picture

You need to get the latest php client libs from facebook. get the latest Drupal for Facebook and see the README.txt for instructions.

The duplicate entry error has been reported but I have not been able to reproduce it reliably. Will fix if I can learn exactly what it takes to reproduce it. (Let's not complicate this thread with more than one issue)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.