After checking the log file, this log seemed most relevant:
[Mon Jul 21 09:36:01 2014] [error] [client 127.13.148.129] PHP Fatal error: Uncaught exception 'Facebook\\FacebookSDKException' with message 'You must provide or set a default application id.' in /var/lib/openshift/53c6be555973cadb210003cd/app-root/data/plugins/eme-sync-facebook-events/Facebook/FacebookSession.php:405 \nStack trace:\n#0 /var/lib/openshift/53c6be555973cadb210003cd/app-root/data/plugins/eme-sync-facebook-events/Facebook/FacebookJavaScriptLoginHelper.php(47): Facebook\\FacebookSession::_getTargetAppId(NULL)\n#1 /var/lib/openshift/53c6be555973cadb210003cd/app-root/data/plugins/eme-sync-facebook-events/eme-sync-facebook-events.php(359): Facebook\\FacebookJavaScriptLoginHelper->__construct()\n#2 [internal function]: eme_sfe_options_page('')\n#3 /var/lib/openshift/53c6be555973cad b210003cd/app-root/data/current/wp-includes/plugin.php(470): call_user_func_array('eme_sfe_options...', Array)\n#4 /var/lib/openshift/53c6be555973cadb210003cd/app-root/data/current/wp-admin/admin.php(211): do_action('settings_page_e...')\n#5 /var/lib/openshift/53c6be555973cadb210003cd/app-root/data/current/wp- in /var/lib/openshift/53c6be555973cadb210003cd/app-root/data/plugins/eme-sync-facebook-events/Facebook/FacebookSession.php on line 405, referer: https://clara-cwm2014.rhcloud.com/wp-admin/options-general.php
So it seems to be something with the app Id?
After inspecting the page source I noticed that the appId is returning nothing (just those single quotes) inside the script tag where the content is supposed to be appearing on the settings page:
window.fbAsyncInit = function() {
// init the FB JS SDK
FB.init({
appId : '',// App ID from the app dashboard
channelUrl : 'https://clara-cwm2014.rhcloud.com/wp-content/plugins/eme-sync-facebook-events/eme_fb_channel.php',
// Channel file for x-domain comms
cookie : true, // let's use a cookie afterwards for the php scripts
status : true, // Check Facebook Login status
xfbml : true // Look for social plugins on the page
});
};
I tried manually typing the appId there through the server, but that did nothing. Is the appId pulled from the Facebook App ID setting in the original EME plugin? Because I know I’ve set it there already too so I don’t think that would be a problem. Any ideas?