objective c - Parse.com get the username if its facebook or a parse user -


to current username use: nsstring *username = [[pfuser currentuser] username]; problem if user logged fb string 'u55yceub4z2yzrezbdfpyx3bl' , not real username.

i know can with:

fbrequest *request = [fbrequest requestforme]; [request startwithcompletionhandler:^(fbrequestconnection *connection, id result, nserror *error) { if (!error) {     nsdictionary *userdata = (nsdictionary *)result;     nsstring *username = userdata[@"name"]; }}]; 

but question is, there way username forgetting user logged parse or facebook? if negative, how can know user logged via facebook proper username ?

use pffacebookutils - islinkedwithuser:


Popular posts from this blog

Php - Delimiter must not be alphanumeric or backslash -

c# - How to change the "Applies To" field under folder auditing options programatically (.NET) -

c++ - Ambiguity when using boost::assign::list_of to construct a std::vector -