Topic-icon can not login to website using social media buttons

Active Subscriptions:

None
Hi,

I am new to JFB connect. I have been working on this issue all day, any help would be great!

Website:
www.wintersetaviation.com/

Can't log in with any social media buttons. I get a http 500 internal error with the following in the address bar:

www.wintersetaviation.com/index.php?opti...5937b20dcb0f79e83d=1

Can anybody point me in the right direction?

Thanks,
The topic has been locked.
Support Specialist
9 years 2 months ago #50615 by mel
When I go to your page and hit any of the Facebook, Twitter, or Google buttons to log in, I don't get a 500 error. However, I do get a blank white page which usually indicates a PHP error. Could you turn on error reporting and set it to Maximum/Development in Global Configuration, so we can try again? If you see any errors in your Joomla logs, can you copy them here as well?

Another good setting to turn on while we're trying to resolve this is in JFBConnect > Configuration > General for Enable Debugging Mode. This will help display any errors connecting to the social networks.

Thanks
-Melissa
The topic has been locked.
Active Subscriptions:

None
9 years 2 months ago #50624 by micsaw
After turning error reporting to maximum in joomla:

notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /home3/winteru9/public_html/components/com_jfbconnect/jfbconnect.php on line 15

Warning: require_once(__DIR__/controller.php) [function.require-once]: failed to open stream: No such file or directory in /home3/winteru9/public_html/components/com_jfbconnect/jfbconnect.php on line 15

Fatal error: require_once() [function.require]: Failed opening required '__DIR__/controller.php' (include_path='.:/usr/lib64/php:/usr/share/pear') in /home3/winteru9/public_html/components/com_jfbconnect/jfbconnect.php on line 15

FYI I am not a programer nor do I have much experience. I will have to get in touch with our website person to access joomla logs ( I have full access to the server dashboard, so if it can be easily explained, I can do it)

I turned debugging mode on in JFB connect.

Thank you for the fast reply!
The topic has been locked.
Support Specialist
9 years 2 months ago #50628 by mel
On earlier versions of PHP you may run into this problem.

In the file /home3/winteru9/public_html/components/com_jfbconnect/jfbconnect.php on line 15, try replacing
require_once (__DIR__ . '/controller.php');
with
require_once (dirname(__FILE__) . '/controller.php');

Let me know if that helps resolve the problem.
-Melissa
The topic has been locked.
Active Subscriptions:

None
9 years 2 months ago #50684 by micsaw
That worked! Thanks for quick service!
The topic has been locked.
Support Specialist
9 years 2 months ago #50690 by mel
Glad that worked for you. Keep in mind that if you upgrade JFBConnect in the future, you will likely have to make this change again if you haven't upgraded to a newer version of PHP by that time.

-Melissa
The topic has been locked.
Active Subscriptions:

None
Thanks for the info. Next question.

Do you have a link to setting up a channel in JFB Connect?
Im stuck with authenticating a joomla user with facebook. Im not sure how to accomplish this?
In addition you can only create a facebook app from a personal facebook page. I want to direct all my social media between my website and business facebook page (facebook.com/wintersetaviation) How do I accomplish this?

Thanks,
The topic has been locked.
Support Specialist
9 years 2 months ago #50757 by mel

Do you have a link to setting up a channel in JFB Connect?

The documentation for setting up a channel is found here: www.sourcecoast.com/jfbconnect/docs/post...reate-social-channel

Im stuck with authenticating a joomla user with facebook. Im not sure how to accomplish this?

It might be a little out of date or not as specific as it needs to be, as I just changed a lot of Channel setup functionality in the last release and will still be tweaking it. With 6.2.4, here are some specific steps that might help explain how to handle the setup of the channel and having to authenticate the feature.

1. To add a FB page or group, for the Facebook account that you want to be the channel owner, login on the front-end with the Facebook button, not as a Joomla user.
2. Create the channel in the backend and you should be able to select that channel owner from #1.
3. Save the channel.
4. If there were warnings in the channel for permissions that need to be approved, such as manage_pages, publish_actions or user_groups, log out on the front-end and re-log in via the Facebook button with the channel owner.
5. In the backend in the channel, refresh it and hit save. Then follow prompts to select the page/group etc, then select the published button. Then save.
6. Theoretically at this point, after saving, there should be some stream data to test the communication.
7. Then to post, any admin that logs in on the front-end should be able to create the post, even if they are not the channel owner.

To add Twitter or LinkedIn, just change the above steps to log in on the front-end with the Twitter or LinkedIn buttons, respectively.

In addition you can only create a facebook app from a personal facebook page. I want to direct all my social media between my website and business facebook page (facebook.com/wintersetaviation) How do I accomplish this?

Once the channel is created to the Business Facebook Page (facebook.com/wintersetaviation) following the setup steps from above, you will be able to
1. Create posts on your website that will be pushed to the business page - Guide at www.sourcecoast.com/jfbconnect/docs/posting/to-social-networks
2. Load posts from the business page on your website with our SCSocialStream module - Guide at www.sourcecoast.com/jfbconnect/docs/posting/social-streams

This is a newer feature to JFBConnect, so setup for channels is not completely polished yet. Please let me know if you run into problems with any of the above pieces.

-Melissa
The topic has been locked.
Active Subscriptions:

None
Thanks for the information. Channel complete!
The topic has been locked.
Support Specialist
9 years 2 months ago #50789 by mel
Glad you got it working. Let us know if you run into any other issues.

-Melissa
The topic has been locked.