Skip to content

Instantly share code, notes, and snippets.

@timmow
Created December 6, 2011 17:14
Show Gist options
  • Save timmow/1439003 to your computer and use it in GitHub Desktop.
Save timmow/1439003 to your computer and use it in GitHub Desktop.
Private messaging widget
<!DOCTYPE html>
<html xmlns:pas="http://phpinfo.tmower.connect-dev-web-01.bfb1.sites.ipcdigital.co.uk/pluckTest.html" xml:lang="en" lang="en">
<head>
<title>Client Flow Example</title>
<script type="text/javascript" src="http://goodtoknow.pluck.ipcdigital.co.uk/ver1.0/Content/ua/scripts/pluckApps.js"></script>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : '152695124822835', // App ID
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
oauth : true, // enable OAuth 2.0
xfbml : true // parse XFBML
});
// Additional initialization code here
};
// Load the SDK Asynchronously
(function(d){
var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
js = d.createElement('script'); js.id = id; js.async = true;
js.src = "//connect.facebook.net/en_US/all.js";
d.getElementsByTagName('head')[0].appendChild(js);
}(document));
</script>
</head>
<body>
<div id="fb-root"></div>
<script type="text/javascript" src="http://womanandhome.pluck.ipcdigital.co.uk/ver1.0/content/widgets/privateMessaging/widget.js"></script>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment