How to see when a facebook profile was created

I am trying to determine when a user joined facebook. So far what I have come up with is scanning the users profile pictures for the first one ( i seem to remember that in the early days, facebook forced you to upload a profile picture ) and take the timestamp from there. I thought of doing the same thing with wall posts too...

Does anyone have any ideas on how to get the most accurate information about when a user created his/her account?

asked Sep 7, 2011 at 11:19

1

There is no way to get this field, but what many applications do to approximate this is take the oldest photo in the 'Profile Pictures' album - which for me is within a week of my actual signup date

answered Sep 9, 2011 at 19:46

How to see when a facebook profile was created

IgyIgy

43.6k8 gold badges88 silver badges115 bronze badges

2

Beside looking at oldest user's profile picture or album (which doesn't work all the time), you can estimate the Facebook account creation date by finding the creation date of the oldest user post (you can find some code for doing that here).

Another approach is explained here. It shows how to figure out the creation date of a Facebook account without having to call the Facebook API, just based on the user’s Facebook UID. You can also download here the lookup table showing the correlation between Facebook UID and Facebook Account Creation Date.

answered Mar 27, 2013 at 20:09

How to see when a facebook profile was created

AccessTokenAccessToken

2244 silver badges7 bronze badges

Using the profile picture suggestion, this is how I did it: Maybe not the best way but this is the best I can do with my actual objective C knowledge

__block NSDate *oldestPictureDate = [NSDate date];
[[[FBSDKGraphRequest alloc]  initWithGraphPath:@"me" parameters:@{@"fields": @"albums.fields(name,photos.fields(created_time))"}]
    startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection, id result, NSError *error) {
          NSArray* albums = result[@"albums"][@"data"];
          NSUInteger index = [albums indexOfObjectPassingTest:^BOOL(id obj, NSUInteger idx, BOOL *stop) {
              return [obj[@"name"]  isEqualToString: @"Profile Pictures"];}];
          if (index != NSNotFound) {
              NSDictionary *profileImages = albums[index];
              NSDictionary *photos = profileImages[@"photos"];
              NSArray *data = photos[@"data"];
              for (NSDictionary *picture in data) {
                  NSDate* pictureCreationDate = [localDateYYYYMMDD dateFromString:[picture[@"created_time"] substringToIndex:10]];
                  if([oldestPictureDate compare:pictureCreationDate] > 0) oldestPictureDate = pictureCreationDate;
              }
          }
    }
 ];

with

localDateYYYYMMDD = [[NSDateFormatter alloc] init];
[localDateYYYYMMDD setTimeZone:[NSTimeZone timeZoneWithName:@"GMT"]];
[localDateYYYYMMDD setDateFormat:@"yyyy-MM-dd"];

answered Jan 18, 2016 at 23:53

LaurentLaurent

1972 silver badges12 bronze badges

If you are indeed trying to find when did a user join Facebook, I agree with other's answers.

The best way I have been able to find out (which is also cheaper than having to reiterate through tons of posts) is accessing the earliest "profile pictures" of the user. This is making the assumption that a user would post a profile picture soon after creating their account.

Or why not just use Profile Pictures album? Once you can get access to "Profile Pictures" album, you might be able to use created_time field for the album (or sort Profile Pictures by created_time for individual photos).

Even if the earliest photo was deleted, what are the chances that the user stays without any profile picture for a long time?

Reference: https://developers.facebook.com/docs/graph-api/reference/v2.0/album

answered Jun 25, 2014 at 18:11

How to see when a facebook profile was created

A SharmaA Sharma

5511 gold badge4 silver badges13 bronze badges

How do you find out when a Facebook account was created?

For a much more accurate idea of when you joined Facebook, open the Settings menu, select Your Facebook Information, and dive into the Activity Log. From here, click the earliest date on the timeline that appears on the right-hand side, then scroll right down to the bottom of the page.

Can you see when someone joined Facebook?

Scroll to the bottom of the user's Wall. If prompted, click the "View Older Posts" tab at the bottom of the page to view additional activity on the user's Wall. Facebook lists a user's recent activity in reverse chronological order so that the first action the user took on the site is last.