I am still having issues with getting Facebook connect working with the tersus studio and my app. Now I am pretty new to Tersus so bear with me please.
Firstly I will explain Facebook connect: It basically enables you to authenticate people on your site or Application by letting people use their Facebook login details.
In order for FBC to work with a standard website you need to have some code on the login or homepage. This simply pops up a login box in a small window and you login. This is all very simple if you have a www.yourdomain.com URL.
Code as follows:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml"> <head></head> <body> <script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"></script> <fb:login-button></fb:login-button> <script type="text/javascript"> FB.init("YOUR_API_KEY_HERE"); </script> </body> </html>
But if you have a sub domain like sub.yourdomain.com you will need another html page called xd_receiver.htm which needs to be in the same DIR as the login page or where your FBC page is located.
xd_receiver.htm
Code for the xd_receiver.htm file is:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <body> <script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/XdCommReceiver.js" type="text/javascript"></script> </body> </html>
If you have a sub domain you will need to use this code on your FBC login page instead of the 1st listed code.
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml"> <head></head> <body> <script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"></script> <fb:login-button></fb:login-button> <script type="text/javascript"> FB.init("YOUR_API_KEY_HERE", "xd_receiver.htm"); </script> </body> </html>
OK this brings me to the problem I have...I am testing this FBC above on the tersus.web skeleton and have added the code above as required to the template file (welcome model) as it overrides the welcome_nav_template file in root appserver file.
The button comes up as required but you can't click on it.
Now I put this down to two things. 1) The connect URL can't be set to http://localhost:8080/tersus.web or 2) it needs a live web environment to operate so we will need to add the xd_receiver.htm page to be created in the same DIR as the FBC login page on the tersus.web site as we will use sub domain on tersus.web hosted service.
Oh one more thing can the tersus.web skeleton be hosted on your temp server? As it never uploaded when I tried?
Any ideas?
Steve
To use the full functionality of this web site, JavaScript needs to be turned on.
For best results, use the Firefox browser..
Copyright © 2003-2017 - Tersus Software Ltd., All rights reserved. Terms of Use License Graphic design by EmaraDesign