Facebook SDK for Android
========================
[![Run testsuite with gradle](https://github.com/facebook/facebook-android-sdk/actions/workflows/verifybuild.yml/badge.svg)](https://github.com/facebook/facebook-android-sdk/actions/workflows/verifybuild.yml)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.facebook.android/facebook-android-sdk/badge.svg?style=flat)](https://maven-badges.herokuapp.com/maven-central/com.facebook.android/facebook-android-sdk)
This library allows you to integrate Facebook into your Android app.
Learn more about the provided samples, documentation, integrating the SDK into your app, accessing source code, and more at https://developers.facebook.com/docs/android
:wave: The SDK team is eager to learn from you! Fill out [this survey](https://facebook.co1.qualtrics.com/jfe/form/SV_2hJ13Imkq1YF9Sm?TrackID=GitHub) to tell us what’s most important to you and how we can improve.
TRY IT OUT
----------
1. Check-out the tutorials available online at https://developers.facebook.com/docs/android/getting-started
2. Start coding! Visit https://developers.facebook.com/docs/android/ for tutorials and reference documentation.
FEATURES
--------
* [Login](https://developers.facebook.com/docs/facebook-login)
* [Sharing](https://developers.facebook.com/docs/sharing)
* [Messenger](https://developers.facebook.com/docs/messenger-expressions)
* [App Links](https://developers.facebook.com/docs/applinks)
* [Analytics](https://developers.facebook.com/docs/analytics)
* [Graph API](https://developers.facebook.com/docs/android/graph)
* [Marketing](https://developers.facebook.com/docs/app-events/marketing-kit)
STRUCTURE
---------
The SDK is separated into modules with the following structure.
+----------------------------------------------------+
| |
| Facebook-android-sdk |
| |
+----------------------------------------------------+
+----------+ +----------+ +------------+ +-----------+
| | | | | | | |
| Facebook | | Facebook | | Facebook | | Facebook |
| -Login : | | -Share | | -Messenger | | -Applinks |
| | | | | | | |
+----------+ +----------+ | | | |
+-----------------------+ | | | |
| | | | | |
| Facebook-Common | | | | |
| | | | | |
+-----------------------+ +------------+ +-----------+
+----------------------------------------------------+
| |
| Facebook-Core |
| |
+----------------------------------------------------+
USAGE
-----
Facebook SDKs are broken up into separate modules as shown above. To ensure the most optimized use of
space only install the modules that you intend to use. To get started, see the Installation section below.
Any Facebook SDK initialization must occur only in the main process of the app. Use of Facebook SDK in processes other than the main process is not supported and will likely cause problems.
INSTALLATION
------------
Facebook SDKs are published to Maven as independent modules. To utilize a feature listed above
include the appropriate dependency (or dependencies) listed below in your `app/build.gradle` file.
```gradle
dependencies {
// Facebook Core only (Analytics)
implementation 'com.facebook.android:facebook-core:latest.release'
// Facebook Login only
implementation 'com.facebook.android:facebook-login:latest.release'
// Facebook Share only
implementation 'com.facebook.android:facebook-share:latest.release'
// Facebook Messenger only
implementation 'com.facebook.android:facebook-messenger:latest.release'
// Facebook App Links only
implementation 'com.facebook.android:facebook-applinks:latest.release'
// Facebook Android SDK (everything)
implementation 'com.facebook.android:facebook-android-sdk:latest.release'
}
```
You may also need to add the following to your project/build.gradle file.
```gradle
buildscript {
repositories {
mavenCentral()
}
}
```
GIVE FEEDBACK
-------------
Please report bugs or issues to https://developers.facebook.com/bugs/
You can also visit our [Facebook Developer Community Forum](https://developers.facebook.com/community/),
join the [Facebook Developers Group on Facebook](https://www.facebook.com/groups/fbdevelopers/),
ask questions on [Stack Overflow](http://facebook.stackoverflow.com),
or open an issue in this repository.
SECURITY
--------
See the [SECURITY POLICY](SECURITY.md) for more info on our bug bounty program.
CONTRIBUTING
-------------
We are able to accept contributions to the Facebook SDK for Android. To contribute please do the following.
- Follow the instructions in the [CONTRIBUTING.md](https://github.com/facebook/facebook-android-sdk/blob/main/CONTRIBUTING.md).
- Submit your pull request to the [main](https://github.com/facebook/facebook-android-sdk/tree/main) branch. This allows us to merge your change into our internal main and then push out the change in the next release.
LICENSE
-------
Except as otherwise noted, the Facebook SDK for Android is licensed under the Facebook Platform License (https://github.com/facebook/facebook-android-sdk/blob/main/LICENSE.txt).
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
DEVELOPER TERMS
---------------
- By enabling Facebook integrations, including through this SDK, you can share information with Facebook, including information about people’s use of your app. Facebook will use information received in accordance with our Data Use Policy (https://www.facebook.com/about/privacy/), including to provide you with insights about the effectiveness of your ads and the use of your app. These integrations also enable us and our partners to serve ads on and off Facebook.
- You may limit your sharing of information with us by updating the Insights control in the developer tool (https://developers.facebook.com/apps/[app_id]/settings/advanced).
- If you use a Facebook integration, including to share information with us, you agree and confirm that you have provided appropriate and sufficiently prominent notice to and obtained the appropriate consent from your users regarding such collection, use, and disclosure (including, at a minimum, through your privacy policy). You further agree that you will not share information with us about children under the age of 13.
- You agree to comply with all applicable laws and regulations and also agree to our Terms (https://www.facebook.com/policies/), including our Platform Policies (https://developers.facebook.com/policy/) and Advertising Guidelines, as applicable (https://www.facebook.com/ad_guidelines.php).
By using the Facebook SDK for Android you agree to these terms.
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
这个开源库允许您将Facebook集成到您的Android应用程序中。将您的 Android 应用程序与 Facebook 集成,以使用 Facebook SDK for Android 构建引人入胜的社交应用程序。详细了解如何使用 Facebook 开发工具。适用于 Android 的 Facebook SDK 的当前版本是 11.2.0,需要 Android API 15。适用于 Android 的 Facebook SDK 的代码和示例可在 GitHub 上找到。一种安全便捷的方式,方便用户使用 Facebook 凭据登录您的应用或网站。允许用户通过您的应用发帖到 Facebook。用户可以共享、发送消息和共享到快拍。了解用户在应用中的操作,并衡量移动应用广告的效果。获取进出Facebook社交图谱的数据,查询数据,发布故事,上传照片和执行其他任务。
资源推荐
资源详情
资源评论
收起资源包目录
适用于安卓的脸书开发工具包,Facebook集成到您的Android应用程序中的APP完整项目开源代码 (957个子文件)
IReceiverService.aidl 323B
gradlew.bat 2KB
secring.gpg.enc 5KB
.gitignore 1KB
.gitignore 7B
.gitignore 7B
.gitignore 7B
.gitignore 7B
.gitignore 7B
.gitignore 7B
.gitignore 7B
maven.gradle 4KB
build.gradle 2KB
build.gradle 2KB
build.gradle 1KB
settings.gradle 27B
gradlew 5KB
gradlew 5KB
gradle-wrapper.jar 53KB
gradle-wrapper.jar 53KB
VideoUploader.java 21KB
ShareApi.java 19KB
AppLinkData.java 19KB
GameRequestDialog.java 14KB
AppLinkDataTest.java 11KB
HelloFacebookSampleActivity.java 10KB
DaemonRequest.java 9KB
FacebookAppLinkResolver.java 9KB
MessageDialog.java 9KB
GameRequestDialog.java 8KB
GamingImageUploader.java 8KB
CloudGameLoginHandler.java 7KB
InAppPurchaseLibrary.java 6KB
SDKConstants.java 6KB
ShareButtonBase.java 6KB
FacebookFuzzyInputPowerMockTestCase.java 5KB
SDKLogger.java 5KB
GameFeaturesLibrary.java 5KB
FriendFinderDialog.java 5KB
DaemonReceiver.java 5KB
GamingPayload.java 5KB
AppToUserNotificationSender.java 4KB
GamingVideoUploader.java 4KB
InAppAdLibrary.java 4KB
GamingGroupIntegration.java 3KB
CollectionMapper.java 3KB
ShareToMessengerParamsBuilder.java 3KB
LoadAppSettingsFuzzyTest.java 3KB
OpenGamingMediaDialog.java 3KB
ShareButton.java 3KB
SDKMessageEnum.java 2KB
SendButton.java 2KB
MessageDialogFeature.java 2KB
SDKAnalyticsEvents.java 2KB
GameRequestValidation.java 2KB
PlayableAdsLibrary.java 1KB
SDKShareIntentEnum.java 1KB
Mutable.java 585B
AppLinks.java 300B
user_picture_placeholder.jpg 28KB
placeholder.jpg 12KB
GraphRequest.kt 80KB
LoginManager.kt 50KB
GraphRequestTest.kt 40KB
FacebookSdk.kt 39KB
Utility.kt 38KB
NativeProtocol.kt 35KB
Task.kt 32KB
LoginManagerTest.kt 32KB
WebDialog.kt 30KB
LoginButton.kt 29KB
TaskTest.kt 27KB
AccessToken.kt 26KB
AppEventsConversionsAPITransformer.kt 25KB
AppEventsLoggerImpl.kt 24KB
NativeProtocolTest.kt 24KB
LoginClient.kt 23KB
AppEventsLogger.kt 23KB
AccessTokenTest.kt 21KB
ShareInternalUtility.kt 21KB
ShareInternalUtilityTest.kt 20KB
AuthenticationTokenClaims.kt 20KB
DeviceAuthDialog.kt 19KB
ShareDialog.kt 19KB
FileLruCache.kt 18KB
AccessTokenManagerTest.kt 18KB
ViewHierarchy.kt 18KB
AppEventsLoggerImplTest.kt 17KB
ProfilePictureView.kt 17KB
LegacyTokenHelper.kt 17KB
CodelessMatcher.kt 16KB
InAppPurchaseBillingClientWrapper.kt 15KB
LoginLoggerTest.kt 15KB
FacebookRequestError.kt 14KB
FetchedAppSettingsManager.kt 14KB
UserSettingsManager.kt 14KB
DeviceAuthDialogTest.kt 14KB
AccessTokenManager.kt 14KB
LegacyTokenCacheTest.kt 14KB
FeatureExtractor.kt 14KB
共 957 条
- 1
- 2
- 3
- 4
- 5
- 6
- 10
资源评论
小兔子平安
- 粉丝: 209
- 资源: 1940
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Android源码新基线代码更新的方法
- 1_二级程序设计题(34).rar
- 二级程序调试题(填空27+改错7).docx
- HM2314-VB一款N-Channel沟道SOT23的MOSFET晶体管参数介绍与应用说明
- 基于深度学习的危险驾驶检测算法python源码+视频判断是否闭眼或者张开嘴哈欠和吸烟打电话等手势行为功能涵盖7类.zip
- Free-Fs 开源文件管理系统
- HM2314B-VB一款N-Channel沟道SOT23的MOSFET晶体管参数介绍与应用说明
- 毕业设计:Python高校学生学业预警系统(源码 + 数据库 + 说明文档)
- HM2312-VB一款N-Channel沟道SOT23的MOSFET晶体管参数介绍与应用说明
- 毕业设计:Python的在线自主评测系统(源码 + 数据库 + 说明文档)
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功