Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# C#4.0
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 29-Jul-12 21:23pm
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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 ?
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

io need source code get name.email on facebook into my database.can you help me???
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

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' });
               }
           });
 
       }
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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/[^]
  Permalink  

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 487
1 CPallini 345
2 OriginalGriff 240
3 George Jonsson 159
4 Abdul Samad KP 145
0 OriginalGriff 6,329
1 Sergey Alexandrovich Kryukov 5,700
2 CPallini 4,940
3 George Jonsson 3,469
4 Gihan Liyanage 2,522


Advertise | Privacy | Mobile
Web01 | 2.8.140916.1 | Last Updated 29 Sep 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100