Tuesday, January 3, 2012

Tracking the SWF file..

Facebook doesn't often change the SWF file that is used for its cross-domain handler, but sometimes it's useful to download automatically the right binary file:


SWF_FILE=`grep --color=none all_deminified.js | "_swfPath\": " | sed -E "s/(.*?)swfPath\": \"rsrc.php(.*?.swf)\"/\2/" | sed 's/\\\\//g'`
/usr/bin/wget "http://static.ak.fbcdn.net/rsrc.php/${SWF_FILE}" -O ${SWF_OUTPUT}


https://github.com/rogerhu/connect-js/blob/master/update_fb_github.sh

No comments:

Post a Comment