Topic-icon facebook error

Active Subscriptions:

None
13 years 1 month ago #32513 by gaddo
facebook error was created by gaddo
Hi

I have installed jfb like. When user clicks like on my site say \http://www.cmypictures.com/services The page is posted to his facebook. The problem comes when his friends then click on the like. The first link (Name of page) returns forbidden and the second link returns error page.

Please see web and advise. I can provide log in info and server info if needed.


Thanks.
The topic has been locked.
Support Specialist
13 years 1 month ago #32519 by alzander
Replied by alzander on topic facebook error
I just registered, and the links work fine for me. I've attached a screen capture below where I've hovered my mouse over the title link. You can see at the bottom that it's directing to your home page, which works for me and seems correct:

File Attachment:


If you're seeing something different, can you post the URLs of the pages you are being redirected to that are returning 'forbidden' or the error page? That will help.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
13 years 1 month ago #32539 by gaddo
Replied by gaddo on topic facebook error
Go to this page

www.cmypictures.com/services/weddings

Click on like and even post a message.

Now go to facebook, click on your username to see your likes and activity.

Now if you click on the link it will take you to forbidden page. Your friends too wil go to a forbidden page.

Please give it a try and see.

Thanks.
The topic has been locked.
Support Specialist
13 years 1 month ago #32551 by alzander
Replied by alzander on topic facebook error
Are you talking about the link in the line at the top of the post, "likes a link on cmypictures.com."? If so, go into Autotune and click into the "Canvas" tab. Remove your URL from the Canvas URL and Secure Canvas URL.

The reason the link isn't working is because you don't have an SSL certificate on your site. Without one, you can't use the Canvas features of JFBConnect.

Hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
13 years 1 month ago #32620 by gaddo
Replied by gaddo on topic facebook error
I think i have been able to see the problem but do not know how to solve it.

If a user clicks on like they are normally prompted to fill in a comment.

If they choose not to, the like is posted in both their timeline and their likes section of the site. (This is important as some people choose not to fill i a comment.)

If you then go to the likes section and click on the like this is what comes up.

cmypictures.com/?fb_action_ids=101515766...%22}&action_ref_map=[]

www.cmypictures.com/services/weddings/az...%22}&action_ref_map=[]

To try this just unlike the at cmypictures.com and then like but don't put in a comment.

Now if you go to facebook.com and click on your name to see your posts, scroll down to your likes section on the right hand side. The like there will not work.
The topic has been locked.
Support Specialist
13 years 1 month ago #32627 by alzander
Replied by alzander on topic facebook error
Great investigation! You can't stop the extra parameters that Facebook adds to the URLs. They are their for tracking purposes (on their part, and yours if you want to try to track Likes from users). With a little testing, I found that if I removed the following parameter from that long URL, your site would respond correctly:
&action_type_map={"10151576686529866"%3A"og.likes"}
Without it, the URL looks like:
http://www.cmypictures.com/services/weddings/aziza?fb_action_ids=10151576686529866&fb_action_types=og.likes&fb_source=timeline_og&action_object_map={%2210151576686529866%22%3A507710742623527}&action_ref_map=[]
I'm not sure why your site doesn't like that parameter, but I'd suggest looking in an error, security, or firewall log to see if something is blocking URLs with that parameter. Most likely, something is configured on your site incorrectly and denying URLs with that parameter when it sees it.

There's nothing we can do about this within JFBConnect, but hopefully with the information above, your hosting company or technical support can determine why your server is rejecting those types of URLs.

Hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
13 years 1 month ago #32629 by gaddo
Replied by gaddo on topic facebook error
latest error log

[11-Feb-2013 12:52:48] PHP Warning: require_once(/home/cmypirse/public_html/includes/defines.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /home/cmypirse/public_html/index.php on line 18
[11-Feb-2013 12:52:48] PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required '/home/cmypirse/public_html/includes/defines.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/cmypirse/public_html/index.php on line 18




Index is as below Line 18 seems to point to the problem.


<?php
/**
* @package Joomla.Site
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

// Set flag that this is a parent file.
define('_JEXEC', 1);
define('DS', DIRECTORY_SEPARATOR);

if (file_exists(dirname(__FILE__) . '/defines.php')) {
include_once dirname(__FILE__) . '/defines.php';
}

if (!defined('_JDEFINES')) {
define('JPATH_BASE', dirname(__FILE__));
require_once JPATH_BASE.'/includes/defines.php';
}

require_once JPATH_BASE.'/includes/framework.php';

// Mark afterLoad in the profiler.
JDEBUG ? $_PROFILER->mark('afterLoad') : null;

// Instantiate the application.
$app = JFactory::getApplication('site');

// Initialise the application.
$app->initialise();

// Mark afterIntialise in the profiler.
JDEBUG ? $_PROFILER->mark('afterInitialise') : null;

// Route the application.
$app->route();

// Mark afterRoute in the profiler.
JDEBUG ? $_PROFILER->mark('afterRoute') : null;

// Dispatch the application.
$app->dispatch();

// Mark afterDispatch in the profiler.
JDEBUG ? $_PROFILER->mark('afterDispatch') : null;

// Render the application.
$app->render();

// Mark afterRender in the profiler.
JDEBUG ? $_PROFILER->mark('afterRender') : null;

// Return the response.
echo $app;
The topic has been locked.
Active Subscriptions:

None
13 years 1 month ago #32630 by gaddo
Replied by gaddo on topic facebook error
The defines.php look like this

<?php
/**
* @package Joomla.Site
* @subpackage Application
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

// No direct access.
defined('_JEXEC') or die;

/**
* Joomla! Application define.
*/

//Global definitions.
//Joomla framework path definitions.
$parts = explode(DIRECTORY_SEPARATOR, JPATH_BASE);

//Defines.
define('JPATH_ROOT', implode(DIRECTORY_SEPARATOR, $parts));

define('JPATH_SITE', JPATH_ROOT);
define('JPATH_CONFIGURATION', JPATH_ROOT);
define('JPATH_ADMINISTRATOR', JPATH_ROOT . '/administrator');
define('JPATH_LIBRARIES', JPATH_ROOT . '/libraries');
define('JPATH_PLUGINS', JPATH_ROOT . '/plugins' );
define('JPATH_INSTALLATION', JPATH_ROOT . '/installation');
define('JPATH_THEMES', JPATH_BASE . '/templates');
define('JPATH_CACHE', JPATH_BASE . '/cache');
define('JPATH_MANIFESTS', JPATH_ADMINISTRATOR . '/manifests');
The topic has been locked.
Active Subscriptions:

None
13 years 1 month ago #32631 by gaddo
Replied by gaddo on topic facebook error
Please advise based on the two posts above
The topic has been locked.
Support Specialist
13 years 1 month ago #32632 by alzander
Replied by alzander on topic facebook error
That error log message is from 11-Feb-2013 12:52:48, so that's unrelated to the issues above. That log is the PHP error log as well. You'll need to check the Apache error log to see if that has any indications as to what may be wrong with those URLs. If it's not in there, it would likely be in an security exception log. Again, this is something you may need to contact your technical or hosting support department.

Hope that helps,
Alex
The topic has been locked.