简体   繁体   English

Facebook登录Android的问题

[英]Problems with facebook login android

I'm having a lot of trouble to implement Facebook's login in my app... 在我的应用程序中实现Facebook登录时遇到很多麻烦...

I actually could indeed implement the login and it's working (copying and pasting a code from a tutorial)... but the problem is what I do now.... I want to the user to go to the UI of my app after he logs in... In my mind, the correct way would be to start a new activity after facebook's login where I can pass to the new activity ways to retrieve info from the user's profile and continue to be able to use facebook's sdk features. 实际上,我确实可以实现登录并可以正常工作(从教程中复制和粘贴代码)...但是问题是我现在要做的...。我希望用户在他登录后转到应用的用户界面登录...在我看来,正确的方法是在Facebook登录后开始新的活动,在这里我可以转到新的活动方式,以从用户的个人资料中检索信息,并继续使用Facebook的sdk功能。

My problems start there... I can't find any recent tutorial about facebook's SDK of how to implement this simple kind of app... I don't know even how to retrieve user's data from the facebook's session. 我的问题就从这里开始。。。我找不到有关Facebook的SDK的最新教程,该教程如何实现这种简单的应用程序。我什至都不知道如何从facebook的会话中检索用户的数据。 Facebook's documentation is really confuse and don't explain nothing about it... or if it does I really can't understand it... Facebook的文档确实很混乱,对此一无所知……或者,如果我确实不理解,那么……

It seems like the old SDK was a lot easier to use... 似乎旧的SDK易于使用...

Does anyone know a good tutorial that explains how the new SDK really works? 有谁知道一个很好的教程来解释新SDK的实际工作原理?

*I have the login working with Facebook's LoginButton... *I want to change completely the UI so that the user can indeed use my app right after the login... *I'm having really trouble to understand how facebook's SDK works *我使用Facebook的LoginButton进行登录... *我想完全更改UI,以便用户在登录后确实可以立即使用我的应用... *我真的很难理解facebook的SDK的工作方式

I'm sorry if it's not a really straight forward question, but I can't find help anywhere... 很抱歉,这不是一个直截了当的问题,但我在任何地方都找不到帮助...

Thanks in advance 提前致谢

尝试使用Roman Kushnarenko的这个非常有用的library Simple Facebook

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

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