Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i want to get user email, Date of birth and contact no from facebook and want to shown in list and want to sin with facebook. and also insert this value in our database.
can you help me?
Posted

You may be able to export someone's friend list this way, but not just general users. The Facebook website surely has all the info you need on the APIs they expose, have you looked ?
 
Share this answer
 
Integrating facebook with your application means a collection of steps.Do you follow those?Start with this one..then apply yourself..
http://multitiered.wordpress.com/2010/08/05/getting-started-with-the-facebook-c-sharp-sdk/[^]
 
Share this answer
 
io need source code get name.email on facebook into my database.can you help me???
 
Share this answer
 
C#
function fblogin() {

           FB.getLoginStatus(function(response) {
               if (response.authResponse) {
                   // logged in and connected user, someone you know
                   FB.api('/me', function(response) {
                       var i = 0;
                       var result = "";
                       var resultEmail = "";

                       var friends_array;
                       var query = FB.Data.query("SELECT uid, email,name, pic_square, birthday, birthday_date FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = me()) AND birthday_date!=''  order by name");
                       query.wait(function(row) {
                           friends_array = row;

                           for (i = 0; i < row.length; i++) {
                               result += ' <div class="fbfriends"  ><div  class="fbFrndRow rowOdd" ><div class="imgBox"><div class="img"><img src="' + row[i].pic_square + '"/ ></div><input type="checkbox" id="' + row[i].uid + '" name="fbchkname" uid="' + row[i].uid + '"  fbname="' + row[i].name + '" birthday_date= "' + row[i].birthday_date + '"></div><div class="fbFrndInfo"><div class="friend_name float_left" style="font-size:14px;">' + row[i].name + '<br/></div ><div class="tick" style="font-size:14px;" > ' + row[i].birthday + '</div ></div ></div></div>';


                           }
                           $("#fba").click();
                           $('#fbfrienview').html(result);

                       });
                   },
                   { perms: 'read_stream,publish_stream,offline_access,email,user_birthday,friends_birthday,friends_relationships' });
               }
               else {
                   // no user session available, someone you dont know
                   FB.login(function(response) {
                       FB.api('/me', function(response) {
                           var i = 0;
                           var result = "";
                           var resultEmail = "";

                           var friends_array;
                           var query = FB.Data.query("SELECT uid, email,name, pic_square, birthday, birthday_date FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = me()) AND birthday_date!=''  order by name");
                           query.wait(function(row) {
                               friends_array = row;

                               for (i = 0; i < row.length; i++) {
                                   result += ' <div class="fbfriends"  ><div  class="fbFrndRow rowOdd" ><div class="imgBox"><div class="img"><img src="' + row[i].pic_square + '"/ ></div><input type="checkbox" id="' + row[i].uid + '" name="fbchkname" uid="' + row[i].uid + '"  fbname="' + row[i].name + '" birthday_date= "' + row[i].birthday_date + '"></div><div class="fbFrndInfo"><div class="friend_name float_left" style="font-size:14px;">' + row[i].name + '<br/></div ><div class="tick" style="font-size:14px;" > ' + row[i].birthday + '</div ></div ></div></div>';


                               }
                               $("#fba").click();
                               $('#fbfrienview').html(result);

                           });
                       });
                   }, { perms: 'read_stream,publish_stream,offline_access,email,user_birthday,friends_birthday,friends_relationships' });
               }
           });

       }
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900