Tutorial - How to set up free gift inworld for your FB Fans
Go to http://www.thunderpenny.com/ And log in with the account you use to manage your FB Page and allow the Static HTML iFrame app to manage your Pages. (This is nothing shady, it is so the app can create the special tabs and such)
When you have allowed all the permissions, you will be able to select the Page you want to manage (in my case, LVLE) and it will then show you all the tabs available to manage.
You will want to click the orange button that says Add a new tab and go to the next step.
Enter in all the details, you don't have to have a tab image, but you do need a name for the tab.
When you're done, click Install Tab Now, and when it finishes, click 'Go to tab'.
Click where it says Edit Tab.
Here you can add in your own HTML to explain the process of getting a gift from liking the page, or you can choose a template to use. You can use CSS and JavaScript too, as external files too if you want more organisation.
There are a lot of different templates, so have a look and find what fits for you if you're not versed in HTML.
When you have finished editing your tab, click Preview tab to check your work, if you're happy then click Save and Publish.
You have now done the first part of setting up!
The second part is arranging to have a script inworld that will listen out for the code, and then send the gift!
Here is the code below, just copy and paste into a new script. Read the comments so you get an idea of how to use the script (if you're new to scripting)
//Made by Cyclic Gearz - Free to distribute and share, please keep the comments in to enable others to understand the script if they're new or what have you. License is Creative Commons http://creativecommons.org/licenses/by-sa/4.0/ (CC BY-SA 4.0)
default
{
state_entry()
//This number here is the channel you want avatars to type to ie /53 Lemons or /79 Cats
{
llListen(11,"", NULL_KEY, "");
}
//This is where you input the phrase you want to be said, it can be a word, or a sentence as long as it's between the quotation marks.
listen(integer channel, string name, key id, string message) {
if (message == "Donkeys") {
// This gives the first object of the matching type (in this case inventory object) and sends it to the avatar that said the correct phrase.
llGiveInventory(id,llGetInventoryName(INVENTORY_OBJECT,0));
}
}
}
Put this script in an object or prim that will server as your gift terminal, add in your boxed up free gift, and make sure your FB tab explains that the customer/user/whathave you must stand in front of the terminal and type the code into local chat, including the channel, like "/65 Melons" or whatever you have yours set to.
And thats it! Reward your fans with a gift, and get more exposure/brand awareness via your Facebook Page!
If theres anything about this that is unclear or you need clarification on, just ask!
xx Cyclic