Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要检查条件,如果用户的朋友数大于 10,那么他/她才能登录 App。我将如何在 php facebook SDK 中实现它。我需要在我的最后处理它或facebook为此提供一些条件检查?
你必须在最后处理它。简单地说,在用户登录后获取用户的好友数,使用:
$result = $facebook->api("/me/friends"); if(count($result) > 10) { // proceed } else { // stop }
I wanna build a Class to parse List<T> to/from String using Gson:
List<T>
String
private static class ListParser<T> { Gson gson = new Gson();