问题2.3.3从Android应用程序发布到Facebook的时 [英] Issue in 2.3.3 when posting to Facebook from android app

查看:95
本文介绍了问题2.3.3从Android应用程序发布到Facebook的时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Android应用程序的职位,以用户的墙使用的Facebook为Android API 。当用户presses一个按钮来登录对话框到Facebook,然后共享predefined文字给他的FB-墙。这完美的作品在​​仿真器从2.1至2.3.3版本的每一个,也与2.2测试的设备。然而与2.3.3设备(与测试SGII,SGI,HTC-EVO-3D),Facebook正在加载刚,然后突然完成的,并显示previous活动(与按钮)(FB对话框关闭)没有东西公布。

I have an android app that posts to users wall by using the Facebook for android API. When user presses a button a dialog to log in to Facebook and then share a predefined text to his FB-wall. This works perfect in the emulator in every version from 2.1 through 2.3.3, and also with devices tested with 2.2. However on devices with 2.3.3 (tested with SGII, SGI, HTC-Evo-3D), Facebook is just loading and then is suddenly finished and the previous activity (with the button) is displayed(FB dialog closed), and nothing gets posted.

没有错误消息在LogCat中给出。

No error message is given in LogCat.

code:

    PermanentFacebook pf = new PermanentFacebook(activity, FACEBOOK_APP_ID);
    Bundle parameters = new Bundle();
    parameters.putString("link", url);
    parameters.putString("picture", imageURL);
    parameters.putString("name", title);
    parameters.putString("caption", caption);
    parameters.putString("actions", "[{\"link\":\"http://www.stackoverflow.com\", \"name\":\"stackoverflow.com\"}]");
    pf.dialog(activity, "stream.publish", parameters);

该PermanentFacebook类扩展Facebook类,我会为您提供的API,但是我要问这里的问题是,为什么它不与设备2.3.3版本。

The PermanentFacebook class extends Facebook class in the API that I might provide to you, but the question I'm asking here is why it doesn't work in devices with version 2.3.3.

我试图谷歌,但找不到相关的任何东西,除了从这家伙可能有过类似的问题。什么问题可能是有什么建议?任何人都知道一个错误的API?

I have tried to google but can't find anything relevant, except from this guy that might have had a similar issue. Any suggestions for what the problem might be? Anyone aware of a bug with the API?

推荐答案

终于被证明是与位于 /trunk/android/.settings 。 (我的合作开发者有着不同的版本比我)。我认为它在不同的仿真器和一个2.2设备工作,因为他们没有安装该应用程序FB

The problem finally proved to be with the debug.keystore file located in /trunk/android/.settings . (my co-developer had a different version than me). I think it worked in the different emulators and a 2.2 device because they didn't have the FB app installed.

这篇关于问题2.3.3从Android应用程序发布到Facebook的时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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