应用程序权限
我已允许我的应用程序的用户启用查看相册的权限。
然而,我真正想要的是不仅使应用程序能够访问相册,而且使用户能够从相册中选择一张图像,以便应用程序的其他用户随后可以看到。
这是一个竞赛应用程序,因此用户选择一个图像,并且该图像包含在竞赛中,但应用程序的用户必须能够查看,以便他们可以对其进行投票。
我必须从相册中获取图像并上传到托管服务器吗?或者我可以这样做吗?
I have enabled a user of my application to enable permissions to view photo albums.
However, what I really want is to not only enable the application to access the photo albums but to enable the user to select one image from the album that other users of the application can then see thereafter.
This is a competition application so the user selects an image and that image is included in the competition but users of the application must be able to view so as they can vote on it.
Must I take the image from the photo album and upload to a hosting server or is there away I can do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要做的是服务器中的一个应用程序来保存用户选择的照片。然后,您将该照片的引用保存到数据库中,当其他用户访问您的应用程序时,您请求数据库中的所有这些并将它们显示给用户。
这是一个非常基本的编程结构,因此 Facebook 通过许多个人资料为您提供大量共享数据。另一方面,您负责如何处理这些数据、如何使用这些数据以及在哪些应用程序中实施这些数据。请记住,当您这样做时,您必须提供隐私政策和使用条款文件,以避免给您带来任何法律后果。
What you need to do is an application in your server which saves the photo the user has selected. Then you save the reference of this photo into a database and when other users comes to your application you request all of these in the database and show them back to the user.
This is a pretty basic programming structure, so Facebook serves you with a lot of shared data through many profiles. On the other hand, you are in charge of what you do with these data, how you use it and in which applications you implement it. Remember when you do this, you have to provide a privacy policy and a terms of use document to avoid any legal consequence to your end.