When I share an item from K2, to FB or LinkedIn, I get this: https://gyazo.com/c83510c4a557d7f54c18fa28e1a7d549 (index.php instead of an image)
One item from web: http://eurobungalow.com/index.php?optio … mp;lang=es
FB debug: https://developers.facebook.com/tools/d … 6lang%3Des
Could you provide a specific URL of a page you're trying to share? I'll need to check that the Open Graph image and description tags are correct. Randomly looking through your page, I can't find one with LinkedIn / Facebook buttons.
I don't see any share buttons on the link you provided and the image preview you show from the Sharing Debugger shows a valid looking preview.
Since this is a new item that is being published, Facebook hasn't scanned the page. It could make sense that the image/description do not match the tags that are on the page. However, Facebook should automatically update that post when the page is scraped for the first time.
Could you look back at your Facebook Page and let me know if the image/description have been updated for the post - if they've been updated or if they're still incorrect/blank? If there's still a specific URL that has an incorrect image/description, please let me know that URL so that I can look at the tags on the page and look at the sharing debugger.
Just published this one: http://eurobungalow.com/index.php?optio … mp;lang=es
FB link: https://www.facebook.com/Eurobungalow/p … 4795169829
LinkedIn link: https://www.linkedin.com/company/euro-b … amp;a=W4ca
I see now. It looks like the link that is shared is incorrect, hence the empty image. When you click on the link in the FB post, it goes to an unknown page.
1. What version of JFBConnect are you using? The account that you're posting from does not have an active subscription. There have been bug fixes related to autoposting URL's in the past few releases.
2. Could you go into the JFBConnect backend > Channels > History tab and let me know the details for the autopost that was published?
3. Did you create the K2 item in the backend or front-end? Did you just create an item and then save it? Or was it a pending item that was published on a future date. Details on how you performed the autopost would be helpful.
Copyright: 2010-2015 © SourceCoast Web Development
3. Backend. Tried publishing an item that was created before JFBConnect installation and a new item like the last one "test5".
I created new item and save it without publish and then publish it and tried creating new item with publish with the save. Same results with everything.
FB Channel config: https://gyazo.com/db66a60b0257bc5eeff9254607b5771f
LinkedIn Channel config: https://gyazo.com/7fe5ceea1d395eabed7178fceb656fb2
Test5 item: https://gyazo.com/ff12f57ed543a6a2d8af95416faa51ce didn't touch any options in the sidebar.
Image link options: https://gyazo.com/f0e2d151ca7f792cbe3677c58fbbb1fb
We made some changes in one of the most recent versions of JFBConnect that I suspect might be related to this issue. Could you make the following change:
In /libraries/sourcecoast/openGraphPlugin.php, around line 468, could you comment out (or temporarily remove) the following block of code:
//Need to make an AJAX call to front-end to get the SEF URL
$http = JHttpFactory::getHttp();
$sef = $http->get(JUri::root() . 'index.php?option=com_jfbconnect&task=ajax.sef&url=' . base64_encode($link));
if ($sef && $sef->code == 200)
$link = $sef->body;
Could you let me know if this helps to post the correct URL and that it brings you to a valid page?
Still the same problem.
item: http://eurobungalow.com/index.php?optio … mp;lang=es
FB: https://www.facebook.com/Eurobungalow/p … 1345051174
LinkedIn: https://www.linkedin.com/company/euro-b … amp;a=6GT4
Hmm. Would you mind giving us FTP and backend access to your site? Looks like I will have to step through the code and see how it's behaving on your system as we can't reproduce this on our test sites. You can use the envelope icon under my avatar to send a PM.
Thank you for the credentials.
I think I've pinpointed the cause of the problem. When we try to build up the URL to send for the autopost, we were getting redirected by the language switcher which is active on your site. The URL was then not built up properly because I wasn't expecting this redirect. I've added some code to respect the language and it seems to be creating the full path now. I've tested by adding debug statements but didn't actually post to your FB page as I didn't want to spam it with testing. The only file changed on your system was the /libraries/sourcecoast/openGraphPlugin.php file in the method that was mentioned above.
[Edited to add] Actually I just realized the auto-post was going through to your LinkedIn Company page. You will have to delete those messages from your company page. I've already deleted the K2 item that I created as a test, but the link in LinkedIn went to the correct K2 item.
Could you go ahead and try to create a new item or re-publish one that hasn't been auto-posted yet? I've removed the debug statements so it should post now. Let me know how it goes.
Seems is working fine now! Thank you!
http://eurobungalow.com/index.php?optio … mp;lang=es
https://www.facebook.com/Eurobungalow/p … 3117919330
https://www.linkedin.com/company/euro-b … amp;a=_z-1