Facebook的Andr​​oid的视频上传 - 可以与一个应用程序,而不是与其他 [英] Facebook for android video upload - works with one app and not with another

查看:143
本文介绍了Facebook的Andr​​oid的视频上传 - 可以与一个应用程序,而不是与其他的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我上传到Facebook的...

I have a weird problem when uploading a video to facebook...

我的code是基于这样的回答:<一href=\"http://stackoverflow.com/questions/6908413/is-uploading-videos-from-an-sd-card-to-facebook-possible-with-the-facebook-sdk\">Is从SD卡给Facebook可能与Facebook的SDK上传视频?

My code is based on this answer: Is uploading videos from an SD Card to Facebook possible with the Facebook SDK?

它完美地与一个Facebook应用程序,而不是与其他。

It works perfectly with one facebook app, but not with another.

我有我自己作为管理员2 Facebook应用程序。
他们两个都设置了与我的调试密钥散列,二者都具有完全相同的设置。

I have 2 facebook apps that I own as an administrator. Both of them are set up with my debug key hash, and both of them have exactly the same settings.

我在code改变的仅仅是应用程序ID(第一个应用程序或应用第二)。

The ONLY thing I change in my code is the app ID (first app or second app).

这两个应用程序的行为是:

The behavior for both apps is:


  1. 授权成功

  2. 的code的视频上传成功运行,和的onComplete()是
    上传视频后调用。

  3. 对于第一个应用程序(的作品),视频出现在我的Facebook
    个人资料。对于第二个,它没有。

同样,我唯一的变化是改变应用程序ID,以便与每个2 Facebook应用程序的测试。

Again, the only change I do is change the app ID in order to test with each of the 2 facebook apps.

任何见解?

更新

在下面回答我自己的问题。

Answered my own question below.

推荐答案

解决了。

Facebook应用程序,工程被创建在几个月前。
不工作的Facebook应用程序已于昨日创建。

The facebook app that works was created a few months ago. The facebook app that doesn't work was created yesterday.

显然,在该区间的Facebook增加了一个新的许可 - upload_video。
即使是从来没有工作过的应用程序请求许可,但它在某种程度上上传视频,无论它 - 也许是因为Facebook的向后兼容性

Apparently, in that interval facebook added a new kind of permission - "upload_video". Even the app that worked never requested that permission, but it somehow uploaded the video regardless of it - maybe because of facebook's backwards compatibility.

我发现这个问题的方法是注意到,即使是回调的onComplete有一个消息,该消息是错误。
在我看来,非常愚蠢的行为SDK - 如果我有一个错误,为什么调用的onComplete(),而不是onFacebookError()

The way I found this is by noticing that even the onComplete callback has a message, and in that message was the error. Very stupid SDK behavior in my opinion - if I had an error, why call onComplete() and not onFacebookError()?

这篇关于Facebook的Andr​​oid的视频上传 - 可以与一个应用程序,而不是与其他的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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