× Joomla Facebook Connect support forum

Topic-icon Error

Active Subscriptions:

None
13 years 8 months ago #4321 by fb_1472516277
Error was created by fb_1472516277
Hi, I bought your component and I install 3.0 version. When I click the overview link I have this error:

Fatal error: Uncaught exception 'Exception' with message 'Facebook needs the CURL PHP extension.' in /home/mhd-01/www.basketsovizzo.it/htdocs/administrator/components/com_jfbconnect/assets/facebook-api/facebook.php:4 Stack trace: #0 /home/mhd-01/www.basketsovizzo.it/htdocs/components/com_jfbconnect/libraries/facebook.php(110): include_once() #1 /home/mhd-01/www.basketsovizzo.it/htdocs/components/com_jfbconnect/libraries/facebook.php(35): JFBConnectFacebookLibrary->getFbClient() #2 /home/mhd-01/www.basketsovizzo.it/htdocs/components/com_jfbconnect/libraries/facebook.php(23): JFBConnectFacebookLibrary->__construct() #3 /home/mhd-01/www.basketsovizzo.it/htdocs/administrator/components/com_jfbconnect/views/jfbconnect/view.html.php(19): JFBConnectFacebookLibrary::getInstance() #4 /home/mhd-01/www.basketsovizzo.it/htdocs/administrator/components/com_jfbconnect/controller.php(25): JFBConnectViewJFBConnect->display() #5 /home/mhd-01/www.basketsovizzo.it/htdocs/libraries/joomla/application/component/controller.php(236): JFBConnect in /home/mhd-01/www.basketsovizzo.it/htdocs/administrator/components/com_jfbconnect/assets/facebook-api/facebook.php on line 4
The topic has been locked.
Active Subscriptions:

None
13 years 8 months ago #4322 by fb_1472516277
Replied by fb_1472516277 on topic Error
I solved the problem. I had not activate CURL extensions.
2 Problem: is there a way to put a share botton on every article?
3 Problem: if a registred user in my joomla site want to login I have this error: "Fatal error: Class 'JFBConnectFacebook' not found in /home/mhd-01/www.basketsovizzo.it/htdocs/components/com_jfbconnect/controllers/loginregister.php on line 91"
4 Problem: why to see all modules I have to registrate on the site? In example I want to see fans without registration to the site! Like this www.veneti.info
The topic has been locked.
Support Specialist
13 years 8 months ago #4324 by alzander
Replied by alzander on topic Error
Glad you got the cURL thing figured out. That's what we would have told you to investigate. Regarding the other questions:

Problem: is there a way to put a share botton on every article?

Right now, it's module based only to comment on 'pages'. We have it in our queue to make a plugin version which can be placed in article pages specificially.

Problem: if a registred user in my joomla site want to login I have this error: "Fatal error: Class 'JFBConnectFacebook' not found in /home/mhd-01/www.basketsovizzo.it/htdocs/components/com_jfbconnect/controllers/loginregister.php on line 91"

This is a bug. We changed the class name towards the end of development and must have missed testing the 'connect to user logged in' feature. It will be fixed in the next release (due next week). If you'd like to correct yourself, you can edit that line and add "Library" to the class name, like so:
$fbClient = JFBConnectFacebookLibrary::getInstance();

Problem: why to see all modules I have to registrate on the site? In example I want to see fans without registration to the site! Like this www.veneti.info

This will also be fixed in the next release. We re-used some code from the JFBCInvite module which does require a user to be logged in. The next releases of these modules will allow them to be seen by guests, where it makes sense.

Hope this information helps!
The topic has been locked.
Support Specialist
13 years 8 months ago #4335 by mel
Replied by mel on topic Error
I've posted new RC2 versions of the following modules: JFBCLike, JFBCFan, JFBCFeed, JFBCLiveStream, JFBCComments, JFBCRecommendations. These will no longer require the user to log in before seeing the modules. The only social module that still requires it is JFBCFriends, because the iFrame code coming back from Facebook without being logged in is pretty unusable/can't easily log in.

I'll be working on the other issues tonight/this weekend.

-Melissa
The topic has been locked.
Support Specialist
13 years 8 months ago #4336 by mel
Replied by mel on topic Error

fb_1472516277 wrote: Problem: if a registred user in my joomla site want to login I have this error: "Fatal error: Class 'JFBConnectFacebook' not found in /home/mhd-01/www.basketsovizzo.it/htdocs/components/com_jfbconnect/controllers/loginregister.php on line 91"


In addition to Alex's fix for this, one more line of code in /com_jfbconnect/controllers/loginregister.php line 94 needs to be changed:
$rawFbUserId = $fbClient->getUserId(FALSE);

We plan on releasing an RC2 version in the next few days; this fix will also be included.

-Melissa
The topic has been locked.
Active Subscriptions:

None
13 years 8 months ago #4345 by fb_1472516277
Replied by fb_1472516277 on topic Error
Thank's for the fast replay, good news!

Share and also Like botton will be plugins to put in every article so I can Share or like the article and on facebook appears the link of the article and not the link of the page. Is it possible? If yes can you do this with the stable 3.0 relase?

Bug fixes works good.

Another feddback but less important... The login module of CB is integrated with private messagges component. If you can do the same with yours. Thanks.
The topic has been locked.
Support Specialist
13 years 8 months ago #4358 by mel
Replied by mel on topic Error
Yes, that's possible. I'm planning on creating/posting the plugins in the next few days. We don't have a share module, so I can also create that and a plugin too.

I think Alex has some plans to improve the login module and make a plugin so that it can be incorporated into other extensions easily.
The topic has been locked.
Support Specialist
13 years 8 months ago #4359 by alzander
Replied by alzander on topic Error
Yup. With 3.0, we've moved a lot of the logic out of the JFBCLogin module and into the component itself. The idea is to create a plugin to let you put the Login Using FB button anywhere very easily.

Until then, if you'd like to try the following code, it should allow you to insert the button manually in your module:
require_once (JPATH_ROOT.DS.'components'.DS.'com_jfbconnect'.DS.'libraries'.DS.'facebook.php');
$jfbcLibrary = JFBConnectFacebookLibrary::getInstance();
echo $jfbcLibrary->getLoginButton();

There may be some bugs with the login button inserted like this, so please test. It's a work in progress to make it stand-alone like this, so we're not advertising this functionality, but if we can get it going for you sooner than later, great!
The topic has been locked.
Active Subscriptions:

None
13 years 8 months ago #4375 by fb_1472516277
Replied by fb_1472516277 on topic Error
File Attachment:

File Attachment:


The component works but I have a warning...
The topic has been locked.
Support Specialist
13 years 8 months ago #4379 by mel
Replied by mel on topic Error
I can look into the connect URL issue tomorrow, but if you have it set up in the Facebook developer area, you should be good.

Also, I posted two new files in the JFBConnect bundle: JFBCShare module and JFBCSocial plugin. The JFBCShare module is similar to the other social modules, in that it allows you to add the share button in a module. The JFBCSocial plugin allows you to embed JFBCLike, JFBCComments, and JFBCShare functionality into page content.

I'll be adding this to documentation in the next few days, but to get started using plugin, use these tags in your content.

With default styling:
{JFBCLike}
{JFBCComments}
{JFBCShare}

With configurable styling:
{JFBCLike buttonStyle=standard showFaces=true width=500 verbToDisplay=like font=arial colorScheme=dark}
{JFBCComments xid=1 width=500 numposts=10}
{JFBCShare type=box_count linkToShare=http://www.sourcecoast.com}
The topic has been locked.