Monday, 12 May 2014

Get User info using JS SDK after login with Facebook

To day iam working with facebook js sdk it is very easy to get user details after user login to facebook.
<script src=""></script>
  <script type="text/javascript">
      appId  : 'your AppId',
      status : true,
      cookie : true,
      xfbml  : true
                FB.login(function (response) {
   getFBuserData ();
  function getFBuserData () {
                   FB.api('/me', function(data){
                  var userdetails = data.first_name+ data.last_name +;

No comments:

Post a Comment