Topic-icon How to Force JFBConnect to Grab K2 Item Title

Active Subscriptions:

None
9 years 4 months ago #50024 by webdevtim
Yes I did submit the site through the twitter validation tool, but if you remember it couldn't access my site. I will try again until I get success.

Thanks yet again. But Happy New Year Alex. Hope everything is as you hoped it would be for this New Year.
The topic has been locked.
Support Specialist
9 years 4 months ago #50025 by alzander
I just tried with the validator on your site and got the 4 second timeout. When I try to load the same article on your site, it does seem to take more than 4 seconds for the page to start rendering for me. It's possible that the error is correct in that Twitter requires the page to respond within 4 seconds.

You may want to try another (free) tool, like GT Metrix to see how long it takes for your page to respond and start rendering. From a quick test I just ran, it took 3.96s for your site to start sending data. It's possible you could re-run the validator repeatedly until it works (or on the most basic page you can find).. otherwise, I'd look to start disabling any unnecessary plugins/modules/features on your site or optimizing things as best as possible. Those are outside what we can help with, but hopefully gets you started.. if the timing is indeed the problem.
gtmetrix.com/

All the best,
Alex
The topic has been locked.
Active Subscriptions:

None
9 years 4 months ago #50027 by webdevtim
Thanks again Alex.

I was going to go through and optimize the site after I got all the components set up that were going to be used regularly. I was then going to consolidate all of the CSS into one file looking for all classes that essentially do the same thing.

I think the menu is the issue and I was going to change that when I converted the site over to Bootstrap 3.0 including all components, modules and plugins.

But I guess that I have to begin that process now.
The topic has been locked.
Active Subscriptions:

None
9 years 4 months ago #50028 by webdevtim
I did some pruning turned on Progressive Caching and tested the load times and found they range from 1.3 sec. to 6.1 sec. That's quite variable. So I will just keep validating until I achieve success. Then I will look into hooking the site up to CloudFlare.
The topic has been locked.
Support Specialist
9 years 4 months ago #50031 by alzander
Sounds like some good, quick progress, already. Well done.

Let us know if you run into any other issues or when you get things going in general. We'd love to hear how it goes.

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

None
9 years 4 months ago #50035 by webdevtim
Yeh, but now I'm getting 10000ms load times. At one point it was down to 653ms and then after awhile it went to 10000ms. I previously worked with the lead developer at CloudAccess on our load times and he told me it looked like I was being throttled by the common carriers, because my packets were held up for a long periods of time in Verizon's routers compared to all other routers they passed through. He determined this after doing some pings and traceroutes. I do have way too many CSS files being loaded, way too many JavaScript files being loaded, and way too many images so I will have to consolidate the css and JavaScript and use css instead of images where I can.

Bottom line is I still can't authenticate. So I am backing up the site and will begin to do some serious surgery.
The topic has been locked.
Active Subscriptions:

None
9 years 4 months ago - 9 years 4 months ago #50036 by webdevtim
Alex, I have some serious work to do.

GTMatrix evaluation of page load for: www.911truthoutreach.org/

Page load time: 11.86s
Total page size: 1.92MB
Total number of requests: 138

Recomendations are:

Specify image dimensions - thought I was doing this, but maybe the K2 images don't have image specified
Leverage browser caching - added that to .htaccess, but made no difference
Defer parsing of JavaScript - have to go through all the Javascript and see what needs to be loaded immediately and what can be deferred.

I think I have all the components I will be using, so I will finish up as well as I can to get the basics operational, and that which I can't will have to wait until after I finish optimization. I am installing MijoShop and I am running into other issues with that. So the game plan is to get everything basically working, go through and optimize html, css, javascript and images, using sprites where I can or replacing images with css techniques, and then come back and enhance the Social Media and everything else.
Last edit: 9 years 4 months ago by webdevtim.
The topic has been locked.
Active Subscriptions:

None
9 years 3 months ago #50199 by webdevtim
Two things.

1. Facebook custom "Recommend" action on default "Article" Object still only works with Facebook test user, after two weeks of waiting.

2. When someone sends a Facebook message and they include a URL to one of our articles in the message dialogue box, all that is sent is the article image and the name of the site. Do I have to create an action for this on Facebook?? When I look at the source for the page the URL references, I see all the meta property og:tag-names are all in place and all show the correct information. My thought is that JavaScript has to spit out these meta properties and when the URL is included in a Facebook message, the JavaScript hasn't run so the only thing that is available is the K2 image which Facebook grabs by default; just a guess.
The topic has been locked.
Support Specialist
9 years 3 months ago #50203 by alzander

1. Facebook custom "Recommend" action on default "Article" Object still only works with Facebook test user, after two weeks of waiting.

Did you submit your action for approval to Facebook? After you perform the test and it works, you need to submit the action for their review. Once it's approved then all users can use it.

2. When someone sends a Facebook message and they include a URL to one of our articles in the message dialogue box, all that is sent is the article image and the name of the site. Do I have to create an action for this on Facebook?? When I look at the source for the page the URL references, I see all the meta property og:tag-names are all in place and all show the correct information. My thought is that JavaScript has to spit out these meta properties and when the URL is included in a Facebook message, the JavaScript hasn't run so the only thing that is available is the K2 image which Facebook grabs by default; just a guess.

This could be a few things. If the page is 'new' to Facebook and they've never scraped it, then they have to go and quickly grab the HTML and parse the tags. If the loading time of your page is still 11s, then they are likely timing out as well and just showing the basic data the Javascript can fetch about the page.

One way to test is to run the page through the Facebook Debug tool first to see if the right tags are detected. Facebook should cache that data and may use it when someone tries to share your link (though not always).

I hope that helps with some ideas, but should you need anything else, just let us know.

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

None
9 years 3 months ago #50205 by webdevtim

Did you submit your action for approval to Facebook? After you perform the test and it works, you need to submit the action for their review. Once it's approved then all users can use it.

I thought I did, but I will submit it again.

If the loading time of your page is still 11s, then they are likely timing out as well and just showing the basic data the JavaScript can fetch about the page

I am going to put the site on CloudFlare and see if that improves load times enough to get things approved by Facebook and twitter just to get me by until I can deal with the crippling blocking and waiting that is killing the load times. I am going to have to round up all the CSS files and make one large CSS file out of them, and all the JavaScript files and do the same thing and inline as much as I can; that will take some time and testing.

One way to test is to run the page through the Facebook Debug tool first to see if the right tags are detected. Facebook should cache that data and may use it when someone tries to share your link (though not always).

Thanks I will try that. Right now the site is down because I am getting the WSOD. Index.php looks good and went through all the Joomla troubleshooting suggestions and still WSOD. I can't even get php errors to display and the error log shows no errors were logged. So I can't even try anything right now. Will let you know when things are working according to the play book.
The topic has been locked.