Topic-icon Facebook App Approval

Active Subscriptions:

None
8 years 11 months ago - 8 years 11 months ago #53018 by webdevtim
I have been waiting for a month, and still Facebook hasn't gotten around to approving our app and I haven't heard a word from their engineers.
https://www.911truthoutreach.org/557-news-releases/403-911-truth-emerging-in-congress.html
The Recommend Button.

How do I get their attention?

I am getting page load times that vary from 1.29 seconds to 9.69 seconds. Most of the time page loads are under 3 seconds however once in awhile something freezes up.

I have noticed that CloudFlare randomly takes over 4 seconds to load something like an 8K image. The response server is cloudflare-nginx so there is little doubt that it is CloudFlare that is failing to deliver the image in a timely fashion. This happens at random however. But if it happens when Facebook is attempting to evaluate the App, if could cause a timeout error in which case the App wouldn't be evaluated and approved. I have submitted a ticket to CloudFlare for their perspective. How should I resubmit the request for approval to Facebook in case that they attempted to evaluate the App but it timed out?

Just when I think I have most of t he fires under control a new one flares up.

I just wanted to get the existing website stable so I could re-write everything. I want to re-write the template from the mobile first perspective and keep things as simple as possible so that load times can be kept under 2 seconds without having to resort to aggressive optimization. I just want things to be working so we can generate some revenue through donations and sales so that I can keep doing this work. Sounds simple huh. OK back to addressing the JavaScript issues with our online store.
Last edit: 8 years 11 months ago by webdevtim.
The topic has been locked.
Support Specialist
8 years 11 months ago #53023 by alzander
Replied by alzander on topic Facebook App Approval
You're trying to submit your Open Graph Action for approval, correct? There isn't really much to get their attention. However, the approval process is usually only like a 2-3 day thing. If it's longer than that you may want to consider canceling the application and re-submitting. That, of course, could put you at the end of the queue.. but there's no way FB is taking 30-days with all action approvals... so something is not right.

In general, we've seen Facebook to be a) very responsive within a few days and b) very vocal when they see an issue. If something's wrong, they will tell deny the submission. They aren't always specific enough with exactly what is wrong, but to not hear anything is strange.

Regarding the page load time, as we've discussed before, there's plenty that could be investigated both on-site and off. For Cloudflare specifically, I'd recommend reading the following articles:
support.cloudflare.com/hc/en-us/articles...-or-a-specific-file-
support.cloudflare.com/hc/en-us/articles...IT-Expired-etc-mean-
When you're looking at the response codes from each asset, you can tell if it was actually cached on Cloudflare (they don't cache everything, always) or if Cloudflare had to fetch it from your site and then deliver it to the user (which adds more delay).

I hope that helps with narrowing some things down, but let us know if you need anything else.

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

None
8 years 11 months ago - 8 years 11 months ago #53027 by webdevtim
Replied by webdevtim on topic Facebook App Approval
I understand enough about CloudFlare to create Page Rules and how to prevent "RocketLoader" from aggregating certain JavaScript that doesn't work with their aggregater. I have spent time with them which is why I get 1.5 to 2.5 second load times now. They are working on figuring out why I am getting the anomalous 3.6 to 6 second load times for an 8K jpeg.

I have another problem that Joomla has to address and that is adding another argument to
addScript(string $url, string $type = "text/javascript", boolean $defer = false, boolean $async = false) : \JDocument
so that I can add
data-cfasync="false"
ahead of the src= attribute. I need this for Mijoshop JavaScript. Something like string $cust_attrib ahead of string $url would do the trick, I don't see a way to do this without using JavaScript to modify the script tags after the fact, but not sure that would even work as RocketLoader will have already finished aggregating before the JavaScript would run, Hope I can get Joomla to modify their addScript() function.

I will try canceling the application and re-submitting because perhaps it has been flagged as unresponsive.

Alex, you don't need to respond to this, I am just providing it to give clarification to what I was talking about:

Below is what GTMetrix shows for one image, load imte of 3.55s, total onload time was 4.73 seconds and time to first byte from origin server was 678ms. Those two items took 4.228s to load. So this one image was holding up the entire load process. This is also random. It can be this image this time, and another image another time. It is having the effect that when our Newsletter is received in the email client, only some of the images display, because I assume that the request for the other images timed out before the response from cloudflare-nginx server was sent.

GET www.911truthoutreach.org/images/banners/...how/911-debris-2.jpg 200 OK 911truthoutreach.org 23.6 KB 3.55s

Response Headers

Server - cloudflare-nginx
Date - Thu, 07 May 2015 01:33:12 GMT
Content-Type - image/jpeg
Content-Length - 24193
Connection - keep-alive
Last-Modified - Sat, 07 Mar 2015 19:53:33 GMT
Cache-Control - public, max-age=604800
Expires - Thu, 14 May 2015 01:33:09 GMT
CF-Cache-Status - HIT
Vary - Accept-Encoding
Accept-Ranges - bytes
CF-RAY - 1e292cd6a7c81bc1-SEA

Request Headers

Host - www.911truthoutreach.org
User-Agent - Mozilla/5.0 (X11; Linux i686 on x86_64; rv:25.0) Gecko/20100101 Firefox/25.0
Accept - image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language - en-US,en;q=0.5
Accept-Encoding - gzip, deflate
Referer - www.911truthoutreach.org/
Cookie - __cfduid=dbb8c07b184428823dd5b9faf2aa1f57a1430962388; 35dc0a8e0f67946a84f2745332a1326d=fki90m67rkpigi0vut1q7o56e2
Connection - keep-alive
Last edit: 8 years 11 months ago by webdevtim.
The topic has been locked.
Support Specialist
8 years 11 months ago #53055 by alzander
Replied by alzander on topic Facebook App Approval

Hope I can get Joomla to modify their addScript() function.

This is getting beyond what we can do with JFBConnect. In general though, I'd probably recommend using the addCustomTag call instead where you can add whatever custom HTML you want. You'll have full control then.

CF-Cache-Status - HIT

That's extra strange that there was a hit, but it took 3.55s to download. Not sure what's happening there, but hopefully Cloudflare can help determine where the bottleneck is.

Keep us posted on the review submission, and good luck,
Alex
The topic has been locked.
Active Subscriptions:

None
8 years 11 months ago #53064 by webdevtim
Replied by webdevtim on topic Facebook App Approval

This is getting beyond what we can do with JFBConnect. In general though, I'd probably recommend using the addCustomTag call instead where you can add whatever custom HTML you want. You'll have full control then.

That is what I did. It would still be nicer if Joomla would have a first argument that could be a custom attribute.

That's extra strange that there was a hit, but it took 3.55s to download. Not sure what's happening there, but hopefully Cloudflare can help determine where the bottleneck is.

That seemed odd to me as well. It has been two days and CloudFlare hasn't gotten back to me.

This is the html that gets generated from the modification I made to their mijoshopjquery.php file
  <script data-cfasync="false"  type="text/javascript" src="/plugins/system/mijoshopjquery/mijoshopjquery//ui/jquery-ui-1.8.16.custom.min.js"></script>
  <script data-cfasync="false"  type="text/javascript" src="/plugins/system/mijoshopjquery/mijoshopjquery//ui/jquery-ui-timepicker-addon.js"></script>

There are a half dozen more tags that get generated, but you get the idea.

But yes, this is way beyond JFBConnect support.
The topic has been locked.
Support Specialist
8 years 11 months ago #53069 by alzander
Replied by alzander on topic Facebook App Approval
Glad you're making progress though and I hope it helps make a difference. Keep us posted on what you figure out or how the submissions process goes.

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

None
8 years 11 months ago - 8 years 11 months ago #53084 by webdevtim
Replied by webdevtim on topic Facebook App Approval
Found the problem:

I sent a link to a single image to my email account and when I tried to open it I got this:

Error 1011 Ray ID: 1e38e973b10f07d9 • 2015-05-08 23:23:21 UTC
Access denied

What happened?

The owner of this website (www.911truthoutreach.org) does not allow hotlinking to that resource (/media/com_acymailing/upload/Timothy_In_Suit.jpg).

CloudFlare Ray ID: 1e38e973b10f07d9 • Your IP: 24.205.160.117 • Performance & security by CloudFlare


The problem resided with CloudFlare as I had thought, but the solution was really simple.

CloudFlare has a security feature called "ScrapeShield" and a setting in that called "Hotlink Protection."
I turned that off and the problem went away. I have asked them if I can selectively use that by adding a custom attribute to img tags that I don't want scraped. Interestingly, no one at CloudFlare thought to suggest that this might have been the problem. they responded that there is a way that I can selectively add Hotlink Protection.
Last edit: 8 years 11 months ago by webdevtim.
The topic has been locked.
Support Specialist
8 years 11 months ago #53091 by alzander
Replied by alzander on topic Facebook App Approval
Very interesting. I've seen that setting before (we have it disabled). Can't imagine why it would slog things down so much, but glad you got it going.

Alex
The topic has been locked.
Active Subscriptions:

None
8 years 11 months ago #53092 by webdevtim
Replied by webdevtim on topic Facebook App Approval
OK, now I have to re-submit our Facebook app and get it approved. I am still seeing a lot of variability from CloudFlare, but maybe it just needs a day to settle down and then it will be more consistent.
The topic has been locked.