如何添加Facebook的SDK到Android项目? [英] How can i add facebook SDK to android project?

查看:176
本文介绍了如何添加Facebook的SDK到Android项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想给Facebook SDK添加到Android项目,但我不能添加它,我不能这样做。 我的项目有一个包,有它8-10包我这样在这里可以添加Facebook的SDK?

I'm trying to add facebook SDK to android project but I'm unable to add it, I couldn't do it. My project has one package and there are 8-10 packages in it so where can I add facebook SDK?

我搜索了很多在网络上也没有找到好的解决办法。

I searched a lot on the web but couldn't find good solution.

推荐答案

按照以下步骤包括Facebook的SDK到Android项目:

Following are the steps to include Facebook SDK into android project:

1)从<一个下载Facebook的SDK href="https://github.com/facebook/facebook-android-sdk/">https://github.com/facebook/facebook-android-sdk/    并解压到本地驱动器。

1) Download the Facebook SDK from the https://github.com/facebook/facebook-android-sdk/ and extract it to local drive.

2)进口脸谱作为一个Android项目到Eclipse,这是你的Facebook SDK,你必须把它引用到你的Andr​​oid项目。

2) Import "facebook" as a android project into your Eclipse, this is your Facebook SDK, and You have to reference it to your android project.

3)现在创建您的Andr​​oid项目。

3) Now create your android project.

4)右键单击它,选择属性 - > Android和加入脸谱图书馆作为一个参考项目。单击应用。

4) Right click on it, go to Properties-->android and Add the "facebook "Library as a reference to your project. click Apply.

检查视频链接: http://www.youtube.com/watch?v=w-vNi1W4fco

欲了解更多详情请访问:<一href="https://developers.facebook.com/docs/getting-started/facebook-sdk-for-android/3.0/">https://developers.facebook.com/docs/getting-started/facebook-sdk-for-android/3.0/

For more details visit : https://developers.facebook.com/docs/getting-started/facebook-sdk-for-android/3.0/

这篇关于如何添加Facebook的SDK到Android项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆