簡體   English   中英

如何在Android中注冊G +中獲得G +唯一ID

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

我正在將Google Plus集成到我的應用中,可以使用以下方式訪問基本詳細信息:

Plus.PeopleApi.getCurrentPerson(mGoogleApiClient)

但是我沒有在Facebook API集成中獲得Google Plus的唯一密鑰作為FBID。

根據文檔,應該像這樣工作

  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