我有一个应用程序,当用户使用他的FB帐户登录我的系统时,从FB检索教育和工作细节。
问题是“旧FB帐户ID”的格式与最新的FB帐户ID不同。当用户使用旧FB帐户登录我的应用程序时,仅部分检索教育和工作详细信息。似乎数据传输以某种方式被中断。使用最新的帐户ID格式登录时不会发生这种情况。
旧FB帐户ID 698392510的格式 新FB帐户ID 100001470546089的格式
有谁知道为什么会这样?
以下是代码:code $fb_schools = array();
for ( $i = 0; $i <= count($fbme['education']); $i++ ) {
$educ = $fbme['education'][$i];
if (strlen(utf8_decode(trim($educ['school']['name'])))>0){
$fb_schools[] = utf8_decode(trim($educ['school']['name']));
}
if ($educ['year']) {
$educDetails = array(
'username' => trim($fbme['id']),
'password' => trim($fbme['id']),
'schoolname' => utf8_decode(trim($educ['school']['name'])),
'year' => trim($educ['year']['name']),
'type' => trim($educ['type'])
);
} else {
$educDetails = array(
'username' => trim($fbme['id']),
'password' => trim($fbme['id']),
'schoolname' => utf8_decode(trim($educ['school']['name'])),
'type' => trim($educ['type'])
);
}