Topic-icon Non-SEF URL when shared to Facebook (EasyBlog)

Active Subscriptions:

None
When we share a BlogPost via EasyBlog's 'Autoposting' to Facebook it adds a non-SEF URL link to the Facebook post instead of a SEF URL link.

We contacted StackIdeas about this, and they debugged it and found that it was caused by "System - JFBCSystem" plugin. See comment from them below:

"After debugging long time ago, it seems like this "System - JFBCSystem" causing the issue"

We tested it and this is in fact correct. When we disable the "System - JFBCSystem" plugin it works and posts a SEF URL in Facebook post, but as soon as we enable "System - JFBCSystem" plugin then it is a Non-SEF URL.

Can you please assist with this?

Thanks
File Attachment:


File Attachment:


File Attachment:


File Attachment:
The topic has been locked.
Support Specialist
8 years 7 months ago #54791 by alzander
I just looked at your page. I can see that the JFBCSystem plugin is enabled, but I can't see any non-SEF links in the HTML whatsoever. The og:url tag being set by JFBConnect is:
<meta property="og:url" content="https://www.opgroeigids.nl/blog/het-accepteren-van-je-hoogbegaafde-kind"/>
If I run your page through the Facebook Debug tool , everything shows properly. I also when to Facebook and added your URL to a status update and the link was correct.

Bottom line, I can't see this issue at all.

If you still are, can you tell me:
* Are you on the non-SEF URL version of the page when you post, or at the SEF URL for the page?
* What do you see in the Debug Tool above for the URL when our plugin is enabled vs disabled (make sure you click the "Fetch New Data" button)

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

None
8 years 7 months ago #54801 by imnlimited
Alex,

I knew this would be an issue to communicate with me as the middle-man (between you guys and StackIdeas.

The issue is NOT with any links on the site. The issue only happens when EasyBlog's 'Autoposting' option is enabled to automatically share the newly published blog post on Facebook. Then the link (URL) to the Blog Post in the Facebook post is a NON-SEF URL.

Just to confirm the current situation (screenshots as sent before):
1) See - es-facebook-sharing-105.png - Facebook post as a result of the 'Autopost from EB'
2) Clicking the post on Facebook takes you here - see: es-facebook-sharing-106.png
3) Correct version with SEF URL - see: es-facebook-sharing-107.png

Just to answer you:

alzander wrote: If you still are, can you tell me:
* Are you on the non-SEF URL version of the page when you post, or at the SEF URL for the page?
* What do you see in the Debug Tool above for the URL when our plugin is enabled vs disabled (make sure you click the "Fetch New Data" button)


1) On this occasion I was In EasyBlog Admin (Back-end)
2) N/A in this case as the site links are all fine, only issue is with EB5 autoposting to Facebook.

Trust that this would make things clearer.

Alex from StackIdeas was looking into this, see: stackideas.com/forums/easyblog-new-post-url-non-sef

Cheers,

Andrew
The topic has been locked.
Active Subscriptions:

None
8 years 7 months ago #54825 by imnlimited
Hi Alex ...

any update on this?
The topic has been locked.
Support Specialist
8 years 7 months ago #54859 by alzander
Sorry for the delay. There's a couple suggestions I have to narrow things down. I read through the StackIdeas thread, and it seems like posts get auto-published periodically, so you'll need to toggle one of these and then wait for the auto-post to see what happens.
* Disable the Open Graph - Easy Blog plugin
* Re-order the JFBCSystem plugin to be first in the system group
* Re-order the JFBCSystem plugin to be last in the system group

My guess is that one of these will narrow it down. Either way, we'll have a better course of action once we know the answers.

Please let us know how the above goes. Once the OG - EB plugin is disabled, leave it disabled while you do the other things so that it's not involved any more.

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

None
8 years 6 months ago #54937 by imnlimited
Hi Alex,

Sorry for the delay in getting back to you.

Okay done some testing and no success... still the same. BTW, our OpenGraph - plugin for EasyBlog is disabled as we have not used it at all.

By the way, you said:

alzander wrote: I read through the StackIdeas thread, and it seems like posts get auto-published periodically, so you'll need to toggle one of these and then wait for the auto-post to see what happens.


This is not actually correct, it does not auto-publish periodically, but rather does the 'auto-posting' (publish / share to Facebook) when I ticked the 'Autoposting' tick-box and publish the blog post. It then automatically share the new blog post to Facebook, etc...

When this happens it shares the NON-SEF URL link to the blog post to Facebook instead of the SEF URL.
The topic has been locked.
Support Specialist
8 years 6 months ago #54940 by alzander

This is not actually correct, it does not auto-publish periodically,

I understand how it works. In your thread on StackIdeas, you just mentioned that you don't publish all the time.. so 'you' publish periodically, not EasyBlog.

I'm very confused as to whats going on and how JFBConnect could be causing the issue. You also mention (via PM) that this wasn't an issue with earlier versions of EB, but is with EB5. I'm in the process of getting a similar test setup with JFBC and EB5 setup and will try to recreate the issue. I've never used the auto-posting feature, so it may take some more time to get things setup and then, of course, determining where the issue is coming from.

We'll keep you posted on what we find. To confirm, you're using:
* JFBConnect v6.4.2
* EasyBlog v5.0.26
* Joomla v3.4.4
* Standard Joomla SEF (not a 3rd party SEF extension)

Let me know if something above isn't correct or if there's anything else on your site that may help make sure we're debugging the right setup.

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

None
8 years 6 months ago #54944 by imnlimited
Hi Alex,

Yep that setup is correct, no 2rd party SEF.

It is simple to test once you have EasyBlog and JFBC installed.

1) Make sure that integration of JFBC is enabled in EB5
2) Configure your Facebook account details in EB5 autoposting config
3) create new blog post and 'tick' Autoposting.
4) Publish Blog Post
5) check Facebook post URL to blog...

Would really appreciate this as it is not great having the non-SEF url and the SEF one currently...

Cheers,


Andrew
The topic has been locked.
Support Specialist
8 years 6 months ago #54989 by alzander
Andrew,
Sorry for the delay. We are looking into this. It took a bit of diagnosing to get things going as originally posts from localhost were returning an uncaught 400 error that we had to diagnose.

Once we narrowed that down, we were able to post and the URL was always SEF for us, regardless of whether JFBConnect was enabled or not. We're using the versions of software posted above and I can't see any reason or way that JFBConnect would be un-SEF'ing the URL before it's posted. I've stepped through a large amount of code to see where JFBConnect is a part of the process and it's really not very involved during the auto-post call.

Obviously it is happening on your site, but it seems like there's an interaction between JFBConnect and EasyBlog and possibly something else that's causing it that we can't narrow down on our end. One thing you can test is to log the URL that EasyBlog is generating to help narrow down when the problem is occuring. To do so, set "Enable Debug Mode" to 'Yes' in JFBConnect. Then, edit the /administrator/components/com_easyblog/includes/oauth/adapters/facebook/client.php file. Around line 368, you'll see:
$params = array(
						'link' => $data->url,
						'name' => $post->title,
						'description' => $data->content,
						'message' => $post->title,
						'access_token' => $this->token,
						'picture' => $data->image,
						'source' => $data->image
					);
Add the following after that:
JFBCFactory::log()->add($params['link'], 'message', true);
Try to auto post and then check the /logs/jfbconnect.log file. The URL that was generated should be posted there. Let us know if it switches from SEF to non-SEF when you en/disable the JFBCSystem plugin. That will help push us towards knowing where the URL is being un-SEF'd.

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

None
8 years 6 months ago #55191 by imnlimited
Hi Alex,

We did that and tried it, but no success. We then sent it back to the SI team to look into it and got the following comment today:

"May i know what this plugin 'Social Profiles - EasySocial' purpose? Because I tested in my locally and reproduce this issue, when I enable this plugin, it will causing the issue." - SI Team Support

So it seams that when he disables 'Social Profiles - EasySocial' plugin, it works.

Can you assist with this please?

Thanks,


Andrew
The topic has been locked.