Шукати в статтях підтримки

Остерігайтеся нападів зловмисників. Mozilla ніколи не просить вас зателефонувати, надіслати номер телефону у повідомленні або поділитися з кимось особистими даними. Будь ласка, повідомте про підозрілі дії за допомогою меню “Повідомити про зловживання”

Докладніше

Ця тема перенесена в архів. Якщо вам потрібна допомога, запитайте.

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?

Усі відповіді (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.

Змінено jscher2000 - Support Volunteer

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?

Змінено cconnolly12

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.