简体   繁体   English

如何在Android中注册G +中获得G +唯一ID

[英]How to get G+ unique id in G+ sign up in Android

I'm integrating Google Plus in my app, i can access the basic details using: 我正在将Google Plus集成到我的应用中,可以使用以下方式访问基本详细信息:

Plus.PeopleApi.getCurrentPerson(mGoogleApiClient)

but I'm not getting the unique key of Google Plus as FBID in Facebook API integration. 但是我没有在Facebook API集成中获得Google Plus的唯一密钥作为FBID。

According to the documentation it should work like this : 根据文档,应该像这样工作

  if (Plus.PeopleApi.getCurrentPerson(mGoogleApiClient) != null) {
    Person currentPerson = Plus.PeopleApi.getCurrentPerson(mGoogleApiClient);
    String personId = currentPerson.getId();
    String personName = currentPerson.getDisplayName();
    String personPhoto = currentPerson.getImage();
    String personGooglePlusProfile = currentPerson.getUrl();
  }

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM