ios - Facebook 开发者 API iOS,age_range 返回 NULL
<p><p>这是我的代码,我在这里做错了什么?请记住,我正在使用 FBLoginView 并且其他字符串返回实际有效结果,而不是年龄范围。在此先感谢,-丹尼尔</p>
<pre><code>- (void)loginViewFetchedUserInfo:(FBLoginView *)loginView
user:(id<FBGraphUser>)user {
NSString *userID = ; //objectID instead?
NSLog(@"userID = %@", userID);
NSString *nameFull = ;
NSLog(@"nameFull = %@", nameFull);
NSString *firstName = ;
NSLog(@"firstName = %@", firstName);
NSString *middleName = ;
NSLog(@"middleName = %@", middleName);
NSString *lastName = ;
NSLog(@"lastName = %@", lastName);
NSString *link = ;
NSLog(@"link = %@", link);
NSString *gender = ];
NSLog(@"gender = %@", gender);
NSDictionary *ageRangeDict = ;
NSString *ageRange = [NSString stringWithFormat:@"%@-%@",
,
];
NSLog(@"ageRange = %@", ageRange);
}
</code></pre></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>改变这一行:</p>
<pre><code>NSDictionary *ageRangeDict = ;
</code></pre>
<p>到这里:</p>
<pre><code>NSDictionary *ageRangeDict = ;
</code></pre>
<p>引用:<a href="https://developers.facebook.com/docs/graph-api/reference/v2.0/user" rel="noreferrer noopener nofollow">Link</a> </p></p>
<p style="font-size: 20px;">关于ios - Facebook 开发者 API iOS,age_range 返回 NULL,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/25106602/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/25106602/
</a>
</p>
页:
[1]