Facebook Integration
SaveStats has the ability to be integrated into Facebook.
This allows several features:
- You can view your personal statistics directly in Facebook. No need to go to your SaveStats installation home URL.
- You can put a profile box in your Facebook profile page, with your Personal Total Stats from the system. Letting everyone know your achievements :)
- You can allow SaveStats to publish news on your Wall and Friends News Feeds, when you have played a match. Showing immediately your present score to your friends.
What do you need to setup this integration?
Well first of all you need to be administrator in SaveStats - that's out of the question :)
Second, you need Facebook account yourself.
Then you need to make a Facebook Application which will act as a bridge between SaveStats and Facebook. Here is how to make it:
- Step 1: Add Developers Application, you can find it here: http://www.facebook.com/developers/
- Step 2: Set up new Application by the upper right link "Set Up New Application"
- Step 3: !!! Important !!! On the first tab, "Basic" you will find this two rows:
"API Key" and "Secret". Copy this 2 values because you will need them later. And like it is written there: "Do not share your secret key with anyone". - Step 4: !!! Important !!! Under the "Canvas" tab you will find "Canvas Page URL", the text you enter will be appended to build your Facebook App Url. So this is pretty important. Enter text in this manner: "savestats-xxxxx". Remember it should start with "savestats-" otherwise it won't work. It may be something like "savestats-yourcompanyname". Save Changes. Remember to copy this because you will need it later.
- Step 5: Set some additional details on the Application like:
"Application Name" => "SaveStats-YourCompany" ;
You can upload your Logo and Icon for the Application. For example you can use the files in SaveStats folder /theme/fb-icon/
Save Changes.
Neither of this things are mandatory, but it will make your App prettier. It's your choice. - Step 6: Go to your SaveStats installation administration settings page. In the Facebook box check the "Allow Facebook functionality". Update the settings. Then Enter your "API Key", "Secret" and "Canvas Page URL" that you have stored from the previous steps. Be caraful with the "Canvas Page URL", enter only the part without "savestats-". Update the settings.
- Step 7: Now if everything went OK, when you go to your profile page in SaveStats http://yoursavestatsurl/myprofile
you will see a message in the top informing you of successful integration and link to your Facebook App. Go there and start connecting your SaveStats account with your Facebook one.
If there is something wrong and this does not happen - double check you did all the steps right, and triple check your "API Key", "Secret" and "Canvas Page URL". Seek support in the Forum if you need it.
Now that you have done bridging your SaveStats installation with Facebook, you need to setup the connection between your accounts. Also the following steps will be required for every user you have on your SaveStats that will want to use the Facebook features too.
