Saturday, December 31, 2011

Did You Notice The Link From Yesterday ?

Z had made changes and added new paramenter from yesterday we can look this links for example :

Old Link :

sendkey=3b79d2a84e4390e154a0a28047b7aa78%24%24ccF%28NXRU46nAS0ZUzNKZx_0gcLlONyZmTyB6lz8kv8T1fpUE%21gd8vSoqkLZF1w0ixbQPIGeA%21Ye%2CI%214SSf0-57-jcXfU3C9%28XSPaIOgp&ref=nf

New Link

sendkey=3b79d2a84e4390e154a0a28047b7aa78%24%24ccF%28NXRU46nAS0ZUzNKZx_0gcLlONyZmTyB6lz8kv8T1fpUE%21gd8vSoqkLZF1w0ixbQPIGeA%21Ye%2CI%214SSf0-57-jcXfU3C9%28XSPaIOgp&ref=creative&ref=nf

What is ref=creative ? We can found here :

  • Game Version 19895

private function handleGetPhotosResponse(event:FacebookEvent) : void
        {
            var _loc_3:String = null;
            var _loc_4:Array = null;
            var _loc_2:* = event.data as GetPhotosData;
            if (_loc_2.photoCollection.length > 0)
            {
                _loc_3 = _loc_2.photoCollection.getItemAt((_loc_2.photoCollection.length - 1))["src"];
                _loc_4 = [];
                _loc_4.push({src:_loc_3, href:"{SN_APP_URL}{creative:10}index.php"});
                GlobalEngine.socialNetwork.publishFeedStory("takePhoto", {images:_loc_4}, [], false);
            }
            return;
        }// end function


  • Game Version 19971

 private function handleGetPhotosResponse(event:FacebookEvent) : void
        {
            var _loc_3:String = null;
            var _loc_4:Array = null;
            var _loc_2:* = event.data as GetPhotosData;
            if (_loc_2.photoCollection.length > 0)
            {
                _loc_3 = _loc_2.photoCollection.getItemAt((_loc_2.photoCollection.length - 1))["src"];
                _loc_4 = [];
                _loc_4.push({src:_loc_3, href:"{SN_APP_URL}{creative:10}index.php"});
                GlobalEngine.socialNetwork.publishFeedStory("takePhoto", {images:_loc_4}, [], false);
            }
            return;
        }// end function

Still same from version 19895? yes, right it's same but they added something new in ZTrack class and ZDViral class on game version 19971 :

public static var ZTRACK_TABLE_DEFINITIONS:Object = {sendkey:new Array({key:"from_uid", type:"ZT_INTEGER"}, {key:"channel", type:"ZT_STRING"}, {key:"category", type:"ZT_STRING"}, {key:"subcategory", type:"ZT_STRING"}, {key:"creative", type:"ZT_STRING"}, {key:"zt_send_time", type:"ZT_INTEGER"}, {key:"zt_send_snid", type:"ZT_INTEGER"}, {key:"family", type:"ZT_STRING"}, {key:"genus", type:"ZT_STRING"}, {key:"send_to_uid", type:"ZT_INTEGER"}, {key:"send_client_id", type:"ZT_INTEGER"}, {key:"send_game_id", type:"ZT_STRING"})};



            this.m_context.Set("assetUrl", Config.BASE_PATH);
            var _loc_1:String = "";
            var _loc_2:* = "?vid=" + this.m_vid + "&uid=" + Global.player.snUser.uid + "&frType=" + this.viralName + "&sendkey=" + this.m_sendKey;
            if (this.viralType == ZDViral.TYPE_FEED)
            {
                _loc_2 = _loc_2 + "&ref=creative";
            }
            if (this.viralType == ZDViral.TYPE_WALLTOWALL)
            {
                _loc_2 = _loc_2 + "&ownerId=" + String(this.receivers[0]);
            }
            if (this.m_viralXml.PostInfo && this.m_viralXml.PostInfo.landingPage)
            {
                _loc_1 = Config.FB_APP_URL + this.m_viralXml.PostInfo.landingPage.@url.toString() + ".php" + _loc_2;
            }
            else
            {
                _loc_1 = Config.FB_APP_URL + _loc_2;
            }      

Confused reading the codes ? forget about it :)