index.php instead of an image from article

index.php instead of an image from article

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

Edited by: Killman - Sep-30-16 13:10:29
Killman
useravatar
Offline
6 Posts
Active Subscriptions:

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

Re: index.php instead of an image from article

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.

-Melissa

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

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

Re: index.php instead of an image from article

Sorry I was talking about the autopost option not a share button. When I publish an item from K2 that happens.

Killman
useravatar
Offline
6 Posts
Active Subscriptions:

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

Re: index.php instead of an image from article

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.

-Melissa

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

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

Re: index.php instead of an image from article

Killman
useravatar
Offline
6 Posts
Active Subscriptions:

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

Re: index.php instead of an image from article

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.

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

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

Re: index.php instead of an image from article

1. JFBConnect
Copyright: 2010-2015 © SourceCoast Web Development
Version: 7.0.3

2. https://gyazo.com/56d7cb57220537ae439eaf43310d29bc

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

Edited by: Killman - Oct-04-16 23:58:39
Killman
useravatar
Offline
6 Posts
Active Subscriptions:

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

Re: index.php instead of an image from article

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:

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?

-Melissa

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

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

Re: index.php instead of an image from article

Killman
useravatar
Offline
6 Posts
Active Subscriptions:

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

Re: index.php instead of an image from article

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.

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

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

Re: index.php instead of an image from article

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.

-Melissa

Edited by: mel - Oct-09-16 21:21:05

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

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

Re: index.php instead of an image from article

Killman
useravatar
Offline
6 Posts
Active Subscriptions:

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

Re: index.php instead of an image from article

Thanks for letting me know. I've checked in the change to be available in the next release of JFBConnect.

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

mel
Melissa
useravatar
Offline
3543 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:
11497
Total Polls:
0
Total Posts:
48402
Posts today:
1
User Info
 
Total Users:
47468
Newest User:
hannatee
Members Online:
2
Guests Online:
771

Social Stream
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