Re: [Flashcoders] flv on fb servers not loading in ie only

2010-09-22 Thread jared stanley
thanks for your help Juan.

so yeah the conclusion is this:

FB doesn't want their video content served to non-facebook
places(obviously).
They check that via the referer prop in the header that is sent.
In most browsers the referer is turned off by default, so it actually works.
In IE the referer is turned on by default. When you call a fb vid directly
with the non-fb referer it returns a 404.

Doesn't look like there's a workaround(other than serving different vids to
ie users!) - so close!

Anyway, adding this in here for archival purposes and to say 'thanks' again
for your help juan!





On Tue, Sep 21, 2010 at 7:24 PM, Juan Pablo Califano 
califa010.flashcod...@gmail.com wrote:

 Very weird.

 As you have noticed, it seems facebook is not serving the file under some
 circumstances (it returns a 404 http error code)

 I could make it fail consistently if:

 1) The referer is set and is in a non facebook domain

 AND

 2) The user agent is IE.

 I got the request to work if I set the referer to
 http://www.facebook.com/and leaving the user-agent as IE, for
 instance.

 It also worked, if I kept the original referer but used the same user-agent
 as Chrome:

 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US)
 AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.62 Safari/534.3

 I'm not sure if there's any work around from Actionscript, I'm afraid, as
 you have very limited control over the request headers sent to the server.
 I'm pretty sure you just can't change the user-agent or the referer.

 The only alternative I can think of is proxying your request through some
 server you control. But that of course negates the benefits of using
 facebook's CDN infrastructure and for your server traffic and load it would
 be worse that just hosting the video yourself in the first place.

 I'm sorry this isn't of much help, but I can think of any other work
 around.

 Let us know if you find something else.

 Cheers
 Juan Pablo Califano

 2010/9/21 jared stanley jared.stan...@gmail.com

  thanks.
 
  I think the problem has been isolated,
 
  on the URLRequest, the response is as follows:
 
  http://pastebin.com/AmwCtAcD
 
  in there, the 'referer' param is causing the file to 404 - if we remove
 it
  then the video loads correctly.
 
  anyone have any idea on how to either set that param(not possible i
 think)
  or else modify it once it's loaded before it's processed?
 
  thanks!
 
 
 
 
 
 
  On Mon, Sep 20, 2010 at 6:49 PM, Juan Pablo Califano 
  califa010.flashcod...@gmail.com wrote:
 
   I've had experienced problems with Facebook Connect on IE only. In my
  case,
   the user wouldn't even be able to log in, so I'm not sure this is the
  same
   problem you're experiencing. But anyway, maybe it's worth checking
 this:
  
   http://wiki.github.com/facebook/connect-js/custom-channel-url
  
   http://wiki.github.com/facebook/connect-js/custom-channel-url
  Basically,
   I
   set explicitly the channelUrl on initialization, like in the example
 and
   put
   the channel.html file at the same level that the xd_receiver.html file
  that
   is used for working around JS cross-domain issues. And it solved the
   problem.
  
   If I recall correctly, this custom channel url workaround is necessary
  only
   if your app isn't loaded within FB, as opposed to an external site that
   just
   uses Facebook Connect. (Or was it the other way around?)
  
   Hope this helps.
  
   Cheers
   Juan Pablo Califano
  
  
  
  
   2010/9/20 jared stanley jared.stan...@gmail.com
  
hey - experiencing a weird bug here:
   
we have a video uploaded onto facebook's servers - we then load it
 into
flash.
it's working fine on all browsers except for ie.
it works fine when the video is local or on any other server.
   
anyone have any insights?
   
Thanks!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
   
   ___
   Flashcoders mailing list
   Flashcoders@chattyfig.figleaf.com
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] flv on fb servers not loading in ie only

2010-09-21 Thread jared stanley
thanks.

I think the problem has been isolated,

on the URLRequest, the response is as follows:

http://pastebin.com/AmwCtAcD

in there, the 'referer' param is causing the file to 404 - if we remove it
then the video loads correctly.

anyone have any idea on how to either set that param(not possible i think)
or else modify it once it's loaded before it's processed?

thanks!






On Mon, Sep 20, 2010 at 6:49 PM, Juan Pablo Califano 
califa010.flashcod...@gmail.com wrote:

 I've had experienced problems with Facebook Connect on IE only. In my case,
 the user wouldn't even be able to log in, so I'm not sure this is the same
 problem you're experiencing. But anyway, maybe it's worth checking this:

 http://wiki.github.com/facebook/connect-js/custom-channel-url

 http://wiki.github.com/facebook/connect-js/custom-channel-urlBasically,
 I
 set explicitly the channelUrl on initialization, like in the example and
 put
 the channel.html file at the same level that the xd_receiver.html file that
 is used for working around JS cross-domain issues. And it solved the
 problem.

 If I recall correctly, this custom channel url workaround is necessary only
 if your app isn't loaded within FB, as opposed to an external site that
 just
 uses Facebook Connect. (Or was it the other way around?)

 Hope this helps.

 Cheers
 Juan Pablo Califano




 2010/9/20 jared stanley jared.stan...@gmail.com

  hey - experiencing a weird bug here:
 
  we have a video uploaded onto facebook's servers - we then load it into
  flash.
  it's working fine on all browsers except for ie.
  it works fine when the video is local or on any other server.
 
  anyone have any insights?
 
  Thanks!
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] flv on fb servers not loading in ie only

2010-09-21 Thread Juan Pablo Califano
Very weird.

As you have noticed, it seems facebook is not serving the file under some
circumstances (it returns a 404 http error code)

I could make it fail consistently if:

1) The referer is set and is in a non facebook domain

AND

2) The user agent is IE.

I got the request to work if I set the referer to
http://www.facebook.com/and leaving the user-agent as IE, for
instance.

It also worked, if I kept the original referer but used the same user-agent
as Chrome:

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US)
AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.62 Safari/534.3

I'm not sure if there's any work around from Actionscript, I'm afraid, as
you have very limited control over the request headers sent to the server.
I'm pretty sure you just can't change the user-agent or the referer.

The only alternative I can think of is proxying your request through some
server you control. But that of course negates the benefits of using
facebook's CDN infrastructure and for your server traffic and load it would
be worse that just hosting the video yourself in the first place.

I'm sorry this isn't of much help, but I can think of any other work around.

Let us know if you find something else.

Cheers
Juan Pablo Califano

2010/9/21 jared stanley jared.stan...@gmail.com

 thanks.

 I think the problem has been isolated,

 on the URLRequest, the response is as follows:

 http://pastebin.com/AmwCtAcD

 in there, the 'referer' param is causing the file to 404 - if we remove it
 then the video loads correctly.

 anyone have any idea on how to either set that param(not possible i think)
 or else modify it once it's loaded before it's processed?

 thanks!






 On Mon, Sep 20, 2010 at 6:49 PM, Juan Pablo Califano 
 califa010.flashcod...@gmail.com wrote:

  I've had experienced problems with Facebook Connect on IE only. In my
 case,
  the user wouldn't even be able to log in, so I'm not sure this is the
 same
  problem you're experiencing. But anyway, maybe it's worth checking this:
 
  http://wiki.github.com/facebook/connect-js/custom-channel-url
 
  http://wiki.github.com/facebook/connect-js/custom-channel-url
 Basically,
  I
  set explicitly the channelUrl on initialization, like in the example and
  put
  the channel.html file at the same level that the xd_receiver.html file
 that
  is used for working around JS cross-domain issues. And it solved the
  problem.
 
  If I recall correctly, this custom channel url workaround is necessary
 only
  if your app isn't loaded within FB, as opposed to an external site that
  just
  uses Facebook Connect. (Or was it the other way around?)
 
  Hope this helps.
 
  Cheers
  Juan Pablo Califano
 
 
 
 
  2010/9/20 jared stanley jared.stan...@gmail.com
 
   hey - experiencing a weird bug here:
  
   we have a video uploaded onto facebook's servers - we then load it into
   flash.
   it's working fine on all browsers except for ie.
   it works fine when the video is local or on any other server.
  
   anyone have any insights?
  
   Thanks!
   ___
   Flashcoders mailing list
   Flashcoders@chattyfig.figleaf.com
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] flv on fb servers not loading in ie only

2010-09-20 Thread jared stanley
hey - experiencing a weird bug here:

we have a video uploaded onto facebook's servers - we then load it into
flash.
it's working fine on all browsers except for ie.
it works fine when the video is local or on any other server.

anyone have any insights?

Thanks!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] flv on fb servers not loading in ie only

2010-09-20 Thread Juan Pablo Califano
I've had experienced problems with Facebook Connect on IE only. In my case,
the user wouldn't even be able to log in, so I'm not sure this is the same
problem you're experiencing. But anyway, maybe it's worth checking this:

http://wiki.github.com/facebook/connect-js/custom-channel-url

http://wiki.github.com/facebook/connect-js/custom-channel-urlBasically, I
set explicitly the channelUrl on initialization, like in the example and put
the channel.html file at the same level that the xd_receiver.html file that
is used for working around JS cross-domain issues. And it solved the
problem.

If I recall correctly, this custom channel url workaround is necessary only
if your app isn't loaded within FB, as opposed to an external site that just
uses Facebook Connect. (Or was it the other way around?)

Hope this helps.

Cheers
Juan Pablo Califano




2010/9/20 jared stanley jared.stan...@gmail.com

 hey - experiencing a weird bug here:

 we have a video uploaded onto facebook's servers - we then load it into
 flash.
 it's working fine on all browsers except for ie.
 it works fine when the video is local or on any other server.

 anyone have any insights?

 Thanks!
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders