K2 - Social Autoposting in fb creating incorrect URLs

K2 - Social Autoposting in fb creating incorrect URLs

Hello,
I have multilingual website and when user wrote Item(article) in K2 in other language then EN, autopost in fb give incorrect url. Autopost give them english url.
For example:
Correct url: https://www.domain.com/sk/clanky/item/63-test834
autopost in fb give: https://www.domain.com/en/clanky/item/63-test834  it means eror404
Do you know where is the problem?

Administrator has disabled public posting. Please login or register in order to proceed.

Re: K2 - Social Autoposting in fb creating incorrect URLs

Can you help describe how the post is being generated some more so we can understand further.

Are you using any extensions to manage multi-lingual content, or just standard Joomla and K2 features?

Is the K2 item being written in the backend or the front-end of the site?

Any details you can provide on your configuration will help us narrow down the cause and possible solution.

Thanks,
Alex

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
24140 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: K2 - Social Autoposting in fb creating incorrect URLs

Hi,
Im not using any extensions for multi-lingual, just standart joomla and K2. K2 items are written from front-end. Users which write article are from jomsocial component. When user write a new item, in website and stream(jomsocial component) everything woking well, but autopost in facebook give eror page e404, because there is wrong url. In url is- en instead of other language (for example es or sk).
example: /sk/clanky/item/63-test834 and from facebook is:    /en/clanky/item/63-test834
New item from front-end is setup: language, public,categoty;  url: https://www.domain.com/es/blog-es/nuevo-art
Im using: System - Perfect Open Graph Tags too. I tried to turn off, but it was the same effect.
Sorry for my english.

Administrator has disabled public posting. Please login or register in order to proceed.

Re: K2 - Social Autoposting in fb creating incorrect URLs

Do u have some solution? Any answer?

Edited by: LeRan - Oct-09-17 17:29:17
Administrator has disabled public posting. Please login or register in order to proceed.

Re: K2 - Social Autoposting in fb creating incorrect URLs

I apologize for the delay. We've been investigating this further and believe a simple code fix could fix this issue for you. We tested briefly, but don't have a fully functional multi-lingual site setup (just a dev site that tries to act like one). If you could try the following update and let us know if it works for you, that'd be wonderful.

The edit is in the /plugins/opengraph/k2/k2.php file. Around line 439, you should see:

Code:

$link = K2HelperRoute::getItemRoute($item->id . ":" . urlencode($item->alias), $item->catid);

Please update that to:

Code:

$link = K2HelperRoute::getItemRoute($item->id . ":" . urlencode($item->alias), $item->catid, $item->language);

Let us know how that goes. If it fixes things for you, we'll make sure to include it in the next release of JFBConnect.

Thanks!
Alex

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
24140 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: K2 - Social Autoposting in fb creating incorrect URLs

Hi,
thank you for your recommend.
I tried to edit that row but hovever is not wokring. Is the same effect. Url adress is not changed. there is always en- https://www.domain.com/en/clanky/item/63-test834. But just from facebook. From profile or time line in my site is working good.

Administrator has disabled public posting. Please login or register in order to proceed.

Re: K2 - Social Autoposting in fb creating incorrect URLs

Just wanted to note that we are looking into trying to recreate this on our test site. However it would be very helpful if we could have backend access to see how you've configured your K2 / language settings. We're just having some trouble setting up a multi-lingual site and getting this problem to occur. If you could send a private message to Alex with credentials, that would be appreciated - click on the envelope icon under his avatar to send a PM.

-Melissa

Want to stay up-to-date on new releases and development efforts?
Follow us on Twitter @sourcecoast and @mandreae

mel
Melissa
useravatar
Offline
3604 Posts
Website 
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: K2 - Social Autoposting in fb creating incorrect URLs

Thank you, I sent to Alex message.
Best Regards

Administrator has disabled public posting. Please login or register in order to proceed.

Re: K2 - Social Autoposting in fb creating incorrect URLs

Hi, do you have some new information for me?
Thnx

Administrator has disabled public posting. Please login or register in order to proceed.

Re: K2 - Social Autoposting in fb creating incorrect URLs

Hi Melissa, I create access for Alex and I sent to him. I received no answer. May I ask you to find some new information?

Administrator has disabled public posting. Please login or register in order to proceed.

Re: K2 - Social Autoposting in fb creating incorrect URLs

I'm sorry for the delay.

The backend user credentials you provided does not have enough permissions to configure or view JFBConnect backend properly. For instance, if I try to look at the Channels section, I receive the "You are not authorized to manage this section" error. In JFBConnect backend, there should be an Options button (next to the Autotune button). You can click that to set the permissions for the user group that the Alex user is in (or you could just upgrade it to a super-admin temporarily). We'll need to be able to look at the Channels and Open Graph sections to figure out the issue.

Additionally, could you provide FTP access as well? It would be much easier to be able to track down how the incorrect URL is being generated by actually debugging the code?

-Melissa

Want to stay up-to-date on new releases and development efforts?
Follow us on Twitter @sourcecoast and @mandreae

mel
Melissa
useravatar
Offline
3604 Posts
Website 
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: K2 - Social Autoposting in fb creating incorrect URLs

Hi Melissa,
I changed account for alex to super admin and also I creat access to ftp.
I hope it will help you.

Administrator has disabled public posting. Please login or register in order to proceed.

Re: K2 - Social Autoposting in fb creating incorrect URLs

Hi, do you have some information for me?

There is more mistake: Examp. I can't create other channels:
Erorr message:

No Stream Data found.
    Channel may be configured incorrectly. Please make sure your channel is published and review settings for any possible errors.
    There may be no current posts available from the social network.
Please note, formatting may be different in your admin template, so please just verify if posts are present.

But I check everything, and I didn't find problem current/sad


Automatic post to facebook when I create event in jomsocial is not showing picture etc.   current/sad

och...
Pls...

Administrator has disabled public posting. Please login or register in order to proceed.

Re: K2 - Social Autoposting in fb creating incorrect URLs

There is more mistake: Examp. I can't create other channels:
Erorr message:

No Stream Data found.
    Channel may be configured incorrectly. Please make sure your channel is published and review settings for any possible errors.
    There may be no current posts available from the social network.
Please note, formatting may be different in your admin template, so please just verify if posts are present.

But I check everything, and I didn't find problem current/sad

What social network provider and type are you attempting this for? Some networks, such as LinkedIn, don't send back older posts.

Automatic post to facebook when I create event in jomsocial is not showing picture etc.

Do you have an object set up in JFBConnect > Social Meta > Objects area for the JomSocial events? This object should set the description and image for the event, which is how the image preview is built. Once the event is created, are the og:image and og:description tags set correctly in the source?

-Melissa

Want to stay up-to-date on new releases and development efforts?
Follow us on Twitter @sourcecoast and @mandreae

mel
Melissa
useravatar
Offline
3604 Posts
Website 
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: K2 - Social Autoposting in fb creating incorrect URLs

Hi Melissa,
everything is for facebook. Im sending you print screens.

Once the event is created, are the og:image and og:description tags set correctly in the source?

I don't know what do you exactly mean current/smile

Pls check print screen.
Can you support me with please.
Thank you
Rasto(LeRan)

Administrator has disabled public posting. Please login or register in order to proceed.

Re: K2 - Social Autoposting in fb creating incorrect URLs

If you view the HTML of the page you're sharing and search for "og:image", you should see a tag like the below in the code:

Code:

<meta property="og:image" content="https://www.sourcecoast.com/templates/sourcecoast/images/logo.png" /> 

That og:image tag is what Facebook will use when it's posting content to a feed.

You can also run your page through the Facebook URL Debug Tool and check the different title, description and image Open Graph tags that Facebook is detecting. They should be the same as the HTML on your page, and that can be an easier way to see what Facebook 'sees' for your page.

I hope that helps explain,
Alex

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
24140 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: K2 - Social Autoposting in fb creating incorrect URLs

Hi Alex,

If you view the HTML of the page you're sharing and search for "og:image", you should see a tag like the below in the code:
Code:

<meta property="og:image" content="https://www.sourcecoast.com/templates/sourcecoast/images/logo.png" />

That og:image tag is what Facebook will use when it's posting content to a feed.

You can also run your page through the Facebook URL Debug Tool and check the different title, description and image Open Graph tags that Facebook is detecting. They should be the same as the HTML on your page, and that can be an easier way to see what Facebook 'sees' for your page.

I know this things.

The think is, autoposting is not working in multilanguage website.  When I paste URL to facebook debuger everything is ok. The problem is, autoposting don't know which language is there. It working always with basic language. And when something is in another language, it give it to you wrong URL, bcs there is the core language(in URL). It means eror404.

I gived it to you login and ftp access to my website but you did't sent me any answer any private message- nothing!
I don't have any information from you guys current/sad


And other thing is, everything what you want to share have to be public, (from website), if you have just for registred is not possible to share in facebook, what is the pity bcs is possible to see for non registered users in website.

Please communicate!

Thank you,
Rasto

Administrator has disabled public posting. Please login or register in order to proceed.

Re: K2 - Social Autoposting in fb creating incorrect URLs

I'm sorry for not getting back to you sooner. We were delayed with the Thanksgiving holidays here.

I just tried to FTP into your site again, but I'm still getting the 530 Login Incorrect message. In your PM, you gave the following details:
account name:
name of server:
login name: 
password:
port: 21

What is the difference between account name and login name? I've tried both as the login name / username, but neither works. Is there any special mode I need to use (TLS, SFTP, etc)?

We're unsure what's happening with K2 multi-lingual but will be doing a deeper dive on our end to see if we can determine how to appropriately set the language string in the URL for front-end submissions. FTP access to your site may not be required, but it could certainly help.

Thanks,
Alex

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
24140 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: K2 - Social Autoposting in fb creating incorrect URLs

Hi,
I already turn off access bcs I tought you are not gonna to help me  current/roll

I will sent to you message with access and pls reply me, if it working or not. Should work normal way, nothing special. I will test it before current/wink

Thank you,
Regards,
Rasto

Administrator has disabled public posting. Please login or register in order to proceed.

Re: K2 - Social Autoposting in fb creating incorrect URLs

Rasto,
Thanks so much for your patience. We were able to recreate the issue on our development site after getting multi-lingual content setup properly with K2. I've been testing a fix locally that seems to work and I've implemented it on your site as well thanks to your FTP access.

I did *not* test posting any content. Please do so and let us know if you run into any issues. We don't do a huge amount of testing with multi-lingual sites and there's a lot of different ways to configure them, so I can't guarantee our fix will work in all cases, but we'll continue to help however we can if necessary.

Thanks,
Alex

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
24140 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: K2 - Social Autoposting in fb creating incorrect URLs

Hi Alex,
big big thank you for your support. It work properly!

If you have  bit time, would be great to write me, what you change current/smile
Now when I write new item in K2 in other language, autoposting in facebook is work and URL is good. Thank you again.

Just right now I have other small problem current/smile When I create new channel (person from fb) I have error message:
"The selected user has not granted the 'user_posts' permission. Please have them login on the front-end of the site and accept the correct permission."
Provider: Facebook
Type: all of them

Example:
Facebook Page
"The selected user has not granted the 'manage_pages' permission. Please have them login on the front-end of the site and accept the correct permission."
Facebook Group
"The selected user has not granted the 'user_managed_groups' permission. Please have them login on the front-end of the site and accept the correct permission."



Do u have any idea what cut be a problem?

Probably I have to setup something before ceate channel...


Thanku so much.
Regards,
Rasto

Administrator has disabled public posting. Please login or register in order to proceed.

Re: K2 - Social Autoposting in fb creating incorrect URLs

If you have  bit time, would be great to write me, what you change

Thanks for letting us know it's resolved. I'll have to let Alex tell you the code change as I'm unsure what he's done, but I'll have him check in the code for the next bug fix release of JFBConnect that I am currently working on.

Just right now I have other small problem current/smile When I create new channel (person from fb) I have error message:
"The selected user has not granted the 'user_posts' permission. Please have them login on the front-end of the site and accept the correct permission."
Provider: Facebook
Type: all of them

Example:
Facebook Page
"The selected user has not granted the 'manage_pages' permission. Please have them login on the front-end of the site and accept the correct permission."
Facebook Group
"The selected user has not granted the 'user_managed_groups' permission. Please have them login on the front-end of the site and accept the correct permission."

The channel owner needs to approve certain permissions from your app, depending on how you've set up the channel. Each type requires different permissions - i.e. manage_pages for Pages and 'user_managed_groups' for Groups.

To correct this, first save the channel in the backend with the desired type and channel owner. Once it's saved, go to the front-end of the site and reauthenticate with the channel owner using the Facebook button to log in. You should be prompted for the additional permissions at that time. If you attempt to log in with the Joomla credentials, you won't receive that prompt, so make sure to use the FB button. After accepting the permission, go back into the Channel in the backend of JFBConnect and refresh. The warning about the permission should then be gone.

-Melissa

Want to stay up-to-date on new releases and development efforts?
Follow us on Twitter @sourcecoast and @mandreae

mel
Melissa
useravatar
Offline
3604 Posts
Website 
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: K2 - Social Autoposting in fb creating incorrect URLs

Hi Melissa,

To correct this, first save the channel in the backend with the desired type and channel owner. Once it's saved, go to the front-end of the site and reauthenticate with the channel owner using the Facebook button to log in. You should be prompted for the additional permissions at that time. If you attempt to log in with the Joomla credentials, you won't receive that prompt, so make sure to use the FB button. After accepting the permission, go back into the Channel in the backend of JFBConnect and refresh. The warning about the permission should then be gone.

I have tried many times and many ways, but hovever is not working for me. That why I don't response longer time.  But interesting is, when I tried with my profile, wich work in a past, your way is working. When I am gonna create new channel with somebody else is not working current/sad  . There is always message from my browser "Try clear your cookies"(I already did but is not helping me) and "ERR_TOO_MANY_REDIRECT"
check in attachment.
Do you have any idea what cut be a problem?

Thank you.
Rasto

Administrator has disabled public posting. Please login or register in order to proceed.

Re: K2 - Social Autoposting in fb creating incorrect URLs

1. Can you check to make sure that the user you're trying to use is an administrator of both the FB app and of the Page/Group? 2. Has your FB application been through the App Review process in Fracebook?

If your app has not been reviewed and approved for those permissions yet, then any user that is not an administrator of the app will not be prompted for those permissions on login.

Want to stay up-to-date on new releases and development efforts?
Follow us on Twitter @sourcecoast and @mandreae

mel
Melissa
useravatar
Offline
3604 Posts
Website 
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.
There are 0 guests also viewing this topic
There are 0 users also viewing this topic

Board Info

Board Stats
 
Total Topics:
11684
Total Polls:
0
Total Posts:
49047
Posts today:
3
User Info
 
Total Users:
47816
Newest User:
[email protected]
Members Online:
2
Guests Online:
1089

Online: 
nbjed, skyfranky
Social Stream
SourceCoast Joomla Social Extensions
Friday, 25 May 2018
JFBConnect 8.0 Coming Soon! Stay tuned.
Refer and Earn

Like our extensions? You're not alone! That's why they're used on tens of thousands of websites. Now you can earn 20% of any sale you refer to SourceCoast.com.

We provide excellent documentation, well laid out sales pages and great support. All you need to do is spread the word and we'll take care of the rest.

Learn About Our Affiliate Program