Speed up development with full-stack environments for every branch.

Learn More

Get user details (email address) with JavaScript SDK [facebook]

5465 Runs 17746 Views 10374 Copies
Saved

Saved

sundip 66

sundip
published 4 years ago

<html>
<head>
	<title>Facebook Client-side OAuth Example</title>
	<script src="//ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.1.min.js"></script>
	<script src="./facebook.js"></script>
    <link rel="stylesheet" href="styles.css" type="text/css">
</head>
<body>
<h1 id="header">Get Facebook User Data</h1>
<button id="fb-login">Login to Facebook</button>
<pre id="userdata">

</pre>
</body>
</html>
Please login/signup to get access to the terminal.

Your session has timed out.

Dismiss (the page may not function properly).