× Joomla Facebook Connect support forum

Topic-icon Call to undefined method FacebookRestClient::set_user()

Active Subscriptions:

None
Just installed jfbc 2.0 rc2. I activated both plugins and the login module and then i get the following error:

PHP Fatal error: Call to undefined method FacebookRestClient::set_user() in /var.....httpdocs/administrator/components/com_jfbconnect/assets/facebook-api/facebook.php

anybody any clues why this happens?
The topic has been locked.
Support Specialist
15 years 2 months ago #169 by alzander
That's a new one. Unfortunately, all I have is questions.

Have you set up the API key and Secret key properly in the configuration area? The "Overview" page should show you your application name and callback url when setup properly.

Can you provide which version of PHP you're using? This can be found under "Help->System Info" in the administration area. As stated on the product page, at least 5.0 is required.

Other than that, I'm unsure. Any other information you can provide would help narrow it down in addition to the above.
The topic has been locked.
Active Subscriptions:

None
15 years 2 months ago #170 by playak
PHP Version 5.1.6

strange, i did setup the API key and secret key in the configuration, but they don't show up on the overview page.

the callback url on facebook points to the exact url of my main page...
The topic has been locked.
Active Subscriptions:

None
15 years 2 months ago #172 by playak
in the backend (view.html.php), the function call

$fbClient->admin_getAppProperties($fields);

returns NULL (without errors), which is very suspicious....
The topic has been locked.
Support Specialist
15 years 2 months ago #174 by alzander
That function call is basically the test to Facebook to verify that your API and Secret key are correct. If you're getting null, then something's odd.

Verify those settings again and that there's no whitespace on either side (I trim those values, so there shouldn't be). Also, if you're cutting and pasting, just make sure that the ends are correct.
The topic has been locked.
Active Subscriptions:

None
13 years 8 months ago #4382 by nokanet
I'm getting the same error. Just verified the api keys and no white spaces but still doesn't work. It worked fine earlier but once we upgraded to 3.0RC1 we got this error. Any advise would be greatly appreciated. :)
The topic has been locked.
Support Specialist
Is logging in or out on the front end working? Curious as well as you guys are. We definitely had to change how the Connect URL is fetched from Facebook, but I don't think that not pulling it should cause actual functionality errors. Of course, we want to get this working as it's a good status check.

If one of you could, please PM us some super admin login credentials. From the image above, the Insights data is coming in (active user stats), so I believe you're putting in the right API/Secret keys.. but for some reason it's not getting application info.

You can PM us by clicking the arrow under my name to the left and hit the mail icon.

Thanks!
The topic has been locked.
Support Specialist
Alright, I made a mistake. I had responded to a different forum post earlier and thought you were having a similar issue to that one. This is actually completely different than what I was thinking you were having issues with. However, thanks for sending admin credentials.

I just accessed the admin area of your site, and everything looks normal there and it's showing your Facebook application information on the admin overview page including the your FB application logo.

I then tried to log in on the front end and create an account. It worked, and my Joomla account is 'sourcecoast'. In the admin area again, I can see this account with my FB ID associated to a Joomla user.

So.. I guess the question is, where and how are you seeing this error? Can you cut an paste the specific error, so we can confirm as well? The thread you responded to is quite old, so the broken code mentioned above was fixed long ago, and then removed as we moved to 3.0... which makes it hard to even figure out how you're seeing it.

Thanks for the info.
The topic has been locked.