Facebook的SDK导入到Android的工作室,并在我的应用程序添加我的、并在、应用程序、导入到

2023-09-06 13:20:12 作者:风会带来关于你的消息

嗨只是想知道在加入Facebook的SDK为Android Studio中的步骤。嗯,我已经尝试过这样做的食,但这次我真的失去了做什么,因为在Facebook的开发者页面中提供的步骤仍然是基于Eclipse(https://developers.facebook.com/docs/getting-started/facebook-sdk-for-android/3.0/)

Hi just want to know the steps in adding the facebook SDK for Android Studio. Well I already tried doing it in eclipse but this time I'm really lost on what to do since the steps given in facebook developers page is still on eclipse (https://developers.facebook.com/docs/getting-started/facebook-sdk-for-android/3.0/)

我了解这个问题的一些问题,我认为这事做的摇篮stucture其中我不熟悉。这就是为什么我问的关于如何做到这一点的步骤。嗯,基本上我只是需要的是集成了Facebook的登录我的应用程序和刚刚获得的ID和用户名。使登录继续下去,直到注销,这一切。先谢谢了。

I read some questions about this problem and I think it has something to do with the gradle stucture wherein I'm not familiar with. Which is why I'm asking for the steps on how to do this. Well basically what I just need is to incorporate a facebook login in my app and just get the ID and username. make the login persist until signed out and that's all. Thanks in advance.

推荐答案

它确实都与摇篮结构。实际上,你需要创建摇篮构建文件为Facebook SDK。我们写了一个商务部也许能帮助你。给它一个镜头,并确保向我们提供反馈意见与任何你发现歧义或困难,我会研究它,并相应修改文档。

It does indeed have to do with Gradle structure. Effectively, you need to create Gradle build files for the Facebook SDK. We wrote up a doc that may be able to help you. Give it a shot and be sure to provide us feedback with anything you found ambiguous or difficult, and I will look into it and modify the doc accordingly.

请记住,Android的工作室是在其早期阶段,因为写这篇文章的,所以它可能是随着项目的进展,我们可能需要做出相应改变文档。

Keep in mind that Android Studio is in its early stages as of this writing, so it's possible that as the project progresses we may need to make changes in the doc accordingly.

我还发现,有时候我不得不关闭Android的工作室,然后重新启动之前,事情会奇迹般地重新开始工作。

I also found that sometimes I just had to shut Android Studio down and restart it before things would magically start working again.