在没有 Facebook sdk 的情况下将图像从 Android 上传到 Facebook
我正在编写一个应用程序,它与 facebook 的整个连接都是用于上传位图。有没有什么办法可以做到不注册app、不下载sdk等?
I'm writing an app, that its entire connection to facebook is for uploading bitmaps. Is there any way to do it without registering the app, downloading the sdk, etc?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
当然,假设用户已经安装了 Facebook 应用程序,您可以用您的图像触发 ACTION_SEND 意图。然后用户选择 Facebook 并以这种方式上传。在我看来,有点丑……为什么要避免使用 sdk?集成并不太难,并且当您考虑在应用程序中执行其他操作时,它可以为您提供更大的灵活性。
Sure, assuming the user has facebook app installed already, you could fire off an ACTION_SEND intent with your image. The user then selects facebook and uploads it that way. Kind of ugly imo... Why avoid sdk though? It's not too hard to integrate and grants you a lot more flexibility when you think of something else to do in your app.
就像“broody”所说的那样,它会很俗气。这是个人应用程序还是用于分发?
如果您决定使用 SDK 等,请查看这篇文章:Android - 使用 Facebook Android SDK 将照片上传到 Facebook
Like 'broody' said, it will be tacky. Is this a personal app or for distribution?
If you decide to use the SDK, etc, check out this post: Android - Upload photo to Facebook with Facebook Android SDK
老兄试试这个
dude try this