Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Eheka Pytyvõha

Emboyke pytyvõha apovai. Ndorojeruremo’ãi ehenói térã eñe’ẽmondóvo pumbyrýpe ha emoherakuãvo marandu nemba’etéva. Emombe’u tembiapo imarãkuaáva ko “Marandu iñañáva” rupive.

Kuaave

apps.facebook.com not working

more options

Hi,

I'm having a strange issue. In the newest version of firefox, my facebook app is not functioning properly.

Facebook app url: https://apps.facebook.com/school-info/now/masters-degree?comm_code=4405207&utm_source=facebook&utm_medium=cpc&utm_campaign=darkpost-mobile-masters-lookalike&facebook=darkpost-mobile-masters-lookalike

This link pulls my webpage into an iframe Original: http://connect.waldenu.edu/masters-degree/?comm_code=4405207&utm_source=facebook&utm_medium=cpc&utm_campaign=darkpost-mobile-masters-lookalike&facebook=darkpost-mobile-masters-lookalike

You'll notice that the content is different. The original url uses php switch case to change the headline and the program dropdown. However once pulled into the facebook applications iframe, the switch statement breaks and the default is used.

The facebook application works correctly in other browsers such as chrome and safari.

Is there something that I"m missing in Firefox?

Hi, I'm having a strange issue. In the newest version of firefox, my facebook app is not functioning properly. Facebook app url: https://apps.facebook.com/school-info/now/masters-degree?comm_code=4405207&utm_source=facebook&utm_medium=cpc&utm_campaign=darkpost-mobile-masters-lookalike&facebook=darkpost-mobile-masters-lookalike This link pulls my webpage into an iframe Original: http://connect.waldenu.edu/masters-degree/?comm_code=4405207&utm_source=facebook&utm_medium=cpc&utm_campaign=darkpost-mobile-masters-lookalike&facebook=darkpost-mobile-masters-lookalike You'll notice that the content is different. The original url uses php switch case to change the headline and the program dropdown. However once pulled into the facebook applications iframe, the switch statement breaks and the default is used. The facebook application works correctly in other browsers such as chrome and safari. Is there something that I"m missing in Firefox?

Opaite Mbohovái (5)

more options

I found something:

Framed page: https://connect.waldenu.edu/masters-degree?comm_code=4405207&utm_source=facebook&utm_medium=cpc&utm_campaign=darkpost-mobile-masters-lookalike&facebook=darkpost-mobile-masters-lookalike

Original page: https://connect.waldenu.edu/masters-degree/?comm_code=4405207&utm_source=facebook&utm_medium=cpc&utm_campaign=darkpost-mobile-masters-lookalike&facebook=darkpost-mobile-masters-lookalike

See the subtle difference: there is a / character before the ? (beginning of the query string) in your "original" page, but it's missing on FB, causing me to get BS and PhD listings in addition to Master's listings.

Do I get an "A"?

more options

thats a great observation, unfortunately it does not solve my issue. The switch statement is still not firing correctly in the Framed page.

more options

Can you change the URL of the framed page to match the "original" page URL? Never mind, that URL stopped working, too.

iframe security isn't an issue because the same behavior occurs using the first link I posted.

If I delete ANY individual parameter of the five and submit the URL with only four, it works as designed. Strange; why would that happen? I think you'll need to sort this out on the PHP side.

Moambuepyre jscher2000 - Support Volunteer rupive

more options

Thanks, I'm not sure what you mean. I try removing parameters from the url and I see no difference.

If it was a php issue I dont imagine that page would work in any other browser, let alone, EVERY other browser, including older versions of Firefox. The php works correctly even when the page is not in the facebook application (http://connect.waldenu.edu/masters-degree?comm_code=4405207&utm_source=facebook&utm_medium=cpc&utm_campaign=darkpost-mobile-masters-lookalike&facebook=darkpost-mobile-masters-lookalike).

It it possibly a firefox bug?

Moambuepyre cconnolly12 rupive

more options

I have a new theory.

When Firefox does NOT send a Referer header, it works. That's why editing the URL manually and pressing Enter was working for me, there was no referring page in that scenario. Copying the URL, then launching a new window and pasting the URL in the address bar also works. (But right-click > Open Link in New Window does not work, because that sets the header.)

To test the behavior:

(1) In a new tab, type or paste about:config in the address bar and press Enter. Click the button promising to be careful.

(2) In the search box above the list, type or paste refer and pause while the list is filtered

(3) Double-click the network.http.sendRefererHeader preference and set it to 0 (that's a zero). Then reload the FB page using Ctrl+Shift+r to bypass cache. When finished experimenting, you can right-click>Reset this preference to restore the default value of 2.

But what difference does that make?? We recently had another recent thread about FB apps: document.referrer doesn't return page path.

Confusingly, FB has different settings for different browsers. When I load your application page in Chrome, there is this meta tag:

<meta name="referrer" content="default" id="meta_referrer" />

And Chrome sends this header to your site:

Referer: https://apps.facebook.com/school-info/now/masters-degree?comm_code=4405207&utm_source=facebook&utm_medium=cpc&utm_campaign=darkpost-mobile-masters-lookalike&facebook=darkpost-mobile-masters-lookalike

When I load the page in Firefox, there is this meta tag:

<meta name="referrer" content="origin-when-crossorigin" id="meta_referrer" />

And Firefox sends this header to your site:

Referer: https://apps.facebook.com

If I right-click the framed page > This Frame > Open Frame in New Tab the problem continues, Firefox sends this header to your site:

Referer: https://apps.facebook.com/

Something in your PHP appears to be branching based on HTTP_REFERER and not handling the shorter URL well.