You can also integrate WBE 4.0 as a Facebook application. We have compiled some information for you. However, please also pay close attention to the information Facebook provides for developers. The links to the corresponding Facebook information pages are stored in the respective passages; simply click the text links underlined in red.
![]() |
Important! Check to see whether or not the hotel website has a valid SSL certificate! Only if the domain has an SSL certificate, can WBE 4.0 be integrated into Facebook. |
First, download the Software Developer KIT (SDK) for PHP from Facebook. Please remember to use the SDK for PHP!
On the page where you download the SDK, you will be told how to proceed with the files. Facebook’s step-by-step instructions will lead you through the SDK setup. Additional information about SDK for PHP is also available.
If you have been following the step-by-step instructions for processing the SDKs, you should now have a PHP page which could look like this:
<? require('facebook.php');
$app_id = "__________";
$app_secret = "______________________";
$facebook = new Facebook(array(
'appId' => $app_id,
'secret' => $app_secret,
'cookie' => true
));
$signed_request = $facebook->getSignedRequest();
$page_id = $signed_request["page"]["id"];
$page_admin = $signed_request["page"]["admin"];
$like_status = $signed_request["page"]["liked"];
$country = $signed_request["user"]["country"];
$locale = $signed_request["user"]["locale"];
if (stristr($locale, "de")) { ?>
// Insert the German WBE script here
<?php }
elseif (stristr($locale, "en")) { ?>
// Insert the English WBE script here
<?php }
You can insert the WBE script with the respective language given, into the areas marked with the red wild-card characters. Enter the respective language code (e.g., “de-DE”) into the script at “OverwriteCulture”.
Save the file and test to see if the integration worked.
After successful integration, protel WBE 4.0 will be now available as an application on the hotel’s Facebook page.