请问我的Android应用程序与Facebook的版本V4.3 SDK的工作比4.4奇巧低? [英] Will my Android App with Facebook SDK v4.3 work on versions lower than 4.4 Kitkat?
问题描述
所以,新的Facebook SDK 4.3,并准备到错误我们的生活和更多的浪费我们的时间。
我做的仪式来更新我的应用程序到新的东西。
为了摆脱所有弹出像瘟疫一样的错误,我到一个地步,我必须将应用程序的JDK版本加紧从1.6到1.7。
这也意味着,我还必须从9加紧我的minumum的Android API来奇巧(19)。
我的需求的至少支持,4.0 - 4.3用户了。
的一直有人能够让Facebook SDK 4.3V的工作与Android版本4.4比奇巧(19)老年??? 的
So the new Facebook SDK 4.3 is out and ready to bug our life and waste more of our time. I am doing the ceremony to update my app to that new thing. To get rid of all the errors that pop up like a plague, I reach a point where I must step up the JDK version of my app from 1.6 to 1.7. This also means that I must also step up my minumum Android API from 9 to Kitkat (19). I need to support at least, 4.0 - 4.3 users too. Has somebody been able to make facebook SDK 4.3v work with Android versions older than 4.4 Kitkat(19)???
推荐答案
我不想放弃我的pre-奇巧的用户,所以我找到了一种方法,使同样的老SDK兼容facebook's新API。无需安装新的SDK,并无需重新实现我的应用程序内部的Facebook登录和认证(会话是由3个对象替换,以及其他更改我没有时间来改变。)
因此,配方很简单,只需打开:
I did not want to give up my pre-KitKat users, so I found a way to make the same old SDK compliant with facebook´s new API. No need to install a new SDK, and no need to re-implement Facebook login and authentication inside my app (Session was replaced by 3 more objects, and other changes I dont have time to change.) So the recipe is simple, just open:
src > com.facebook.android > Facebook.java
..而改变这一行code(近似线#87)的:
..and change this line of code (aprox. line #87):
protected static String GRAPH_BASE_URL = "https://graph.facebook.com/";
这样:
protected static String GRAPH_BASE_URL = "https://graph.facebook.com/v2.0/";
瞧!
也许以后,Facebook的完全去precates我整个的Facebook SDK 3.19.1,但在今天,这一天已经被保存。
Voila!! Maybe later, Facebook totally deprecates my entire Facebook SDK 3.19.1, but for today, the day has been saved.
的来源:的
https://developers.facebook.com/docs/apps/upgrading#v1tov2
这篇关于请问我的Android应用程序与Facebook的版本V4.3 SDK的工作比4.4奇巧低?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!