photos

Facebook Graph API - Get like count on page/group photos

我怕爱的太早我们不能终老 提交于 2019-11-28 04:46:40
I've been testing graph API and ran into a problem. How can I get like count from photos of a page/group? I'm administrator/creator of a group. When entering in https://developers.facebook.com/tools/explorer/ certain photo ID from that group it brings almost all data, even comments, but not the like count. For like part it needs (according to docs) access token despite the fact that anyone can access that info. How to get access token of my page/group with required permissions and how to use it to get info I need? If possible I would like to get JSON from a single address if it is possible.

storing uploaded photos and documents - filesystem vs database blob

假装没事ソ 提交于 2019-11-27 23:04:59
My specific situation Property management web site where users can upload photos and lease documents. For every apartment unit, there might be 4 photos, so there won't be an overwhelming number of photo in the system. For photos, there will be thumbnails of each. My question My #1 priority is performance. For the end user, I want to load pages and show the image as fast as possible. Should I store the images inside the database, or file system, or doesn't matter? Do I need to be caching anything? Thanks in advance! While there are exceptions to everything, the general case is that storing

How to fetch all images from custom Photo Album - swift

一笑奈何 提交于 2019-11-27 21:40:01
How to fetch all images from custom Photo Album? var fetchOptions = PHFetchOptions() fetchOptions.sortDescriptors = [NSSortDescriptor(key:"creationDate", ascending: false)] fetchOptions.predicate = NSPredicate(format: "mediaType = %d", PHAssetMediaType.Image.rawValue) let allImages:PHFetchResult = PHAsset.fetchKeyAssetsInAssetCollection(albumList[index].collection, options: fetchOptions) This code block is fetching just few of them. Thanks. -> albumList[index].collection 's type is PHAssetCollection For Swift 4 using this answer https://stackoverflow.com/a/28904792/4795651 edited a little for

Programmatic access to the Photos Library on Mac OS X: PhotoKit / Photos Framework for Mac

霸气de小男生 提交于 2019-11-27 21:23:38
问题 In Objective-C, there's a Photos Framework a.k.a. PhotoKit which enables iOS developers to access the photos library on iPhone and iPad and to retrieve the pictures/videos along with their metadata. How would Mac developers perform a similar task? It seems PhotoKit is only available in iOS 8.0. Is there an equivalent of the Photos Framework for Mac OS X? 回答1: The Media Library Framework is the place to go. Usage: @import MediaLibrary; - (void) awakeFromNib { NSDictionary *options = @{

Swift 3: Load photos from Photos/Camera Roll without using UIImagePickerController

亡梦爱人 提交于 2019-11-27 16:46:28
问题 This question has been asked before but there were no answers for Swift 3. I am looking for the same solution which I am stuck for the past 3 weeks. I have done my research and watched numerous Youtube videos about loading images from Photos/Camera Roll into the app using UIImagePickerController but I want to access the photos without user actions. I want to read a series of photos from camera roll and put them in a photo slide to show them one by one. How can I access these photos without

Where should I store photos? File system or the database? [duplicate]

Deadly 提交于 2019-11-27 14:09:35
Possible Duplicate: storing uploaded photos and documents - filesystem vs database blob I am starting to develop a web app, the primary purpose of which is to display photos. The users will be able to upload photos as well. The first question that came up was where to store the photos: on the file system or the database. I will be using a Windows box to host the site. The database is MySQL and the backend code is in C# utilizing ASP.NET MVC. Filesystem, of course, unless you're aiming for a story on thedailywtf. The easiest way is to have the photos organized by a property you can derive from

How to display my photo albums and photos that are in FB on my own website

牧云@^-^@ 提交于 2019-11-27 12:50:28
I would like to display my photo albums and photos that are in FB on my own website. However everything I have tried requires an access token that I seem to only get if I login to FB. I don't want visitors to my site to have to login to FB to see my photos. Is there a way to get this data and not require a login? I want to pull data from my own FB account. Or is there a different way to authenticate my access behind the scenes so visitors don't have to login, to see my photos? Pravin Facebook has recently launched a way to share the album with public without having to Signin. Every album will

Facebook Graph API - Get like count on page/group photos

守給你的承諾、 提交于 2019-11-27 00:39:08
问题 I've been testing graph API and ran into a problem. How can I get like count from photos of a page/group? I'm administrator/creator of a group. When entering in https://developers.facebook.com/tools/explorer/ certain photo ID from that group it brings almost all data, even comments, but not the like count. For like part it needs (according to docs) access token despite the fact that anyone can access that info. How to get access token of my page/group with required permissions and how to use

storing uploaded photos and documents - filesystem vs database blob

南楼画角 提交于 2019-11-26 21:17:04
问题 My specific situation Property management web site where users can upload photos and lease documents. For every apartment unit, there might be 4 photos, so there won't be an overwhelming number of photo in the system. For photos, there will be thumbnails of each. My question My #1 priority is performance. For the end user, I want to load pages and show the image as fast as possible. Should I store the images inside the database, or file system, or doesn't matter? Do I need to be caching

How to fetch all images from custom Photo Album - swift

做~自己de王妃 提交于 2019-11-26 16:37:50
问题 How to fetch all images from custom Photo Album? var fetchOptions = PHFetchOptions() fetchOptions.sortDescriptors = [NSSortDescriptor(key:"creationDate", ascending: false)] fetchOptions.predicate = NSPredicate(format: "mediaType = %d", PHAssetMediaType.Image.rawValue) let allImages:PHFetchResult = PHAsset.fetchKeyAssetsInAssetCollection(albumList[index].collection, options: fetchOptions) This code block is fetching just few of them. Thanks. -> albumList[index].collection 's type is