PASTE NAVIGATION MENU CODE

Wednesday 4 July 2012

Task 6: Integrating Social Media

| | with 0 comments |
As the last feature of the ICE Malta Second Life Kiosk, some Facebook integration was added. As the user is exiting the kiosk, a message is displayed.



When clicking OK, the user is redirected to Facebook where they can post a message on their timeline, or on the timeline of another user.


Once posted, a link is displayed on the user's timeline.


Clicking on the link will take the user to the Second Life maps page, where they can also teleport to the location of the kiosk.


The message is displayed when the user leaves the kiosk. This is done by detecting the Volume of the avatar on the base prim.

default{
    state_entry(){
        llVolumeDetect(TRUE); // Starts llVolumeDetect
    }
    collision_start(integer total_number){
            llSay(0, "Welcome to ICE Malta on Second Life!");
    }
    collision_end(integer total_number){
            llLoadURL(llDetectedKey(0), "Share your experience at ICE Malta on Second Life with your friends on Facebook!", "http://www.facebook.com/sharer/sharer.php?u=http://goo.gl/q8o8U");
    }
}

When the the "collision" with the prim ends, a URL is loaded which links to the Facebook share API.

Post a Comment

Please enter your comments here..

0 comments: