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.
我需要获取读取的 facebook userId,登录后我得到 app-scoped-userID,我怎么能得到 userId?
登录成功后,需要调用以下代码。您可以在登录的用户详细信息响应中找到用户 ID。
Session session = Session.getActiveSession(); Request request = Request.newGraphPathRequest(session, "me", null); com.facebook.Response response = Request.executeAndWait(request)