- (void)loginViewFetchedUserInfo:(FBLoginView *)loginView user:(id<FBGraphUser>)user { self.profilePictureView.profileID = user.objectID; self.nameLabel.text = user.name; NSLog(@"My ID:%@", user.objectID); }
I tried to print the user id using the above code. And I get 3176144783XXXXX .
However, I have another using this online tool http://findmyfacebookid.com/ . The result is 1000042591XXXXX .
Does anyone know the difference? Why does my application and "findmyfacebookid.com" get a different user ID for the same user?
Note. My mobile application needs to use a unique FB identifier to create my own user database. This is why I need a unique identifier.
Zidong
source share