简体   繁体   English

Facebook 在 Android 上连接与 facebook-android-sdk

[英]Facebook Connect vs facebook-android-sdk on Android

I am trying to add a social aspect to my app where one can post there results (a common feature).我正在尝试向我的应用程序添加一个社交方面,人们可以在那里发布结果(一个常见功能)。

I have found some sites that describe how to do this using Facebook Connect http://www.mobisoftinfotech.com/blog/android/845/我发现一些网站描述了如何使用 Facebook Connect http://www.mobisoftinfotech.com/blog/android/845/

and others, like the Facebook developer site point you towards using the SDK and downloading through Github.和其他人,如 Facebook 开发人员网站指向您使用 SDK 并通过 Github 下载。 http://developers.facebook.com/docs/guides/mobile/ http://developers.facebook.com/docs/guides/mobile/

Anyone have any experience with this?有人对此有经验吗? What is the difference between the two options and which is better for apps?这两个选项有什么区别,哪个更适合应用程序?

All the other questions that seem relevant are years old.所有其他似乎相关的问题都已有多年历史了。

Facebook Connect has been deprecated and you should use the SDK - Integrating Facebook Connect with a Web Page Facebook Connect 已被弃用,您应该使用 SDK - 集成 Facebook 与 ZC3C4E190B280463E 连接

I would recommend using the Facebook-Android-SDK for a couple reasons.出于几个原因,我建议使用 Facebook-Android-SDK。

  1. It comes from Facebook themseleves.来自Facebook他们自己。 ...Perhaps this is actually a reason not to use it: :) ...也许这实际上是不使用它的原因::)
  2. It uses OAuth for authentication, which is good, and it is pretty easy to use.它使用 OAuth 进行身份验证,这很好,而且很容易使用。
  3. The Graph API.图 API。 It is pretty robust, and also easy to use.它非常强大,也易于使用。

Please note that I have not used FB-Connect before, so I may be a bit biased...请注意,我之前没有使用过FB-Connect,所以我可能有点偏见......

I have familiary with the facebook-android-sdk I've never had a problem with it and it seems to work very well.我对facebook-android-sdk很熟悉,我从来没有遇到过问题,而且它似乎工作得很好。

It doesn't really make sense not to use the native SDK unless you are using a webapp imo.除非您使用的是 webapp imo,否则不使用本机 SDK 真的没有意义。

Also I think FBConnect has been deprecated.我也认为 FBConnect 已被弃用。

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

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