photos

Get all public albums of a Facebook user profile - iOS Facebook SDK

我们两清 提交于 2020-01-06 08:11:32
问题 Is there a way to get all public albums of a user profile in Facebook? For example if I use my app *access_token* in a URL like this: https://graph.facebook.com/USER_ID/albums?access_token=MY_APP_ACCESS_TOKEN I get this error: { "error": { "message": "A user access token is required to request this resource.", "type": "OAuthException", "code": 102 } } Why? Is it the right syntax? After solving that, How can I do it in Objective-C? Thank you in advance 回答1: Even if you want to get the public

Getting user photos using Facebook login on android

寵の児 提交于 2019-12-29 02:06:23
问题 I'm using Facebook SDK 4.0 and I'm able to login a user using Facebook login on android using this - info = (TextView)findViewById(R.id.info); loginButton = (LoginButton)findViewById(R.id.login_button); loginButton.registerCallback(callbackManager, new FacebookCallback<LoginResult>() { @Override public void onSuccess(LoginResult loginResult) { info.setText("User ID: " + loginResult.getAccessToken().getUserId() + "\n" + "Auth Token: " + loginResult.getAccessToken().getToken()); } @Override

Tagging Photos via Facebook GraphAPI

橙三吉。 提交于 2019-12-24 19:15:42
问题 Facebook recently added photo-tagging capabilities to its Graph API: http://developers.facebook.com/blog/post/509/ I am using FbConnect on iPhone to upload a picture and tag my page inside it. So, my first call is: NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys: self.imageToPost, @"picture", @"My caption!", @"name", @"tags", nil]; [self.theFacebook requestWithGraphPath:@"me/photos" andParams:params andHttpMethod:@"POST" andDelegate:self]; This correctly

Is it possible to share an image via UIActivityViewController and retain exif data?

血红的双手。 提交于 2019-12-23 10:57:04
问题 I have an app which saves images to a custom album within the camera roll via [library writeImageToSavedPhotosAlbum:[newTestImage CGImage] metadata:metadata completionBlock:^(NSURL *assetURL, NSError *error) { //error } ]; This works fine, however, I would then like to allow the user to share these images from within the app, I was doing it via ALAsset *assetToShare = self.images[indexPath.row]; NSString *stringToShare = @"….."; NSArray *dataToShare = @[assetToShare, stringToShare];

Saving photo with metadata into Camera Roll with specific file name

怎甘沉沦 提交于 2019-12-22 06:41:12
问题 I'm trying to save an image with exif metadata using following code: +(void)saveImageWithMetaToCameraRoll:(UIImage*)image location:(CLLocation*)location album:(PHAssetCollection *)album exif:(NSDictionary *)metadata isOriginal:(BOOL)isOriginal isFavorite:(BOOL)isFavorite completionBlock:(PHAssetBoolBlock)completionBlock { NSMutableDictionary *meta = [metadata mutableCopy]; NSData *imageData = UIImageJPEGRepresentation(image, 1.0f); CGImageSourceRef source = CGImageSourceCreateWithData((_

How to copy an image file from iOS Photo Library (ALAssetsLibrary) to the local directory of an App?

余生颓废 提交于 2019-12-21 17:56:28
问题 I can get images from Photo Library through ALAssetsLibrary: void (^assetEnumerator)(ALAsset *, NSUInteger, BOOL *) = ^(ALAsset *result, NSUInteger index, BOOL *stop){ if([[result valueForProperty:ALAssetPropertyType] isEqualToString:ALAssetTypePhoto]) { // Copy the photo image to the `/Documents` directory of this App here } }; void (^assetGroupEnumerator )(ALAssetsGroup*, BOOL*) = ^(ALAssetsGroup *group, BOOL *stop){ if (group != nil) { [group enumerateAssetsUsingBlock:assetEnumerator]; } }

How do I retrieve the properties of a photo taken on a digital camera using .NET?

会有一股神秘感。 提交于 2019-12-21 16:54:39
问题 Preferably in VB.Net, but C# is fine, how can I access the extra properties added to a file by my digital camera, like Date Picture Taken , Shutter Speed or Camera Model ? 回答1: The following article should be helpful. 回答2: I maintain a library that offers comprehensive support for extracting image metadata from a variety of file formats. https://github.com/drewnoakes/metadata-extractor-dotnet 回答3: When I built something similar I used this article quite a bit. But basically you're looking for

How to fetch all photos from library

岁酱吖の 提交于 2019-12-21 02:16:49
问题 The code shown below is what i've tried already.What I wish to achieve is to fetch all the photos from the device.Currently only a few are being fetched.How to modify the code so as to load all the images from device? let fetchOptions = PHFetchOptions() let collection:PHFetchResult = PHAssetCollection.fetchAssetCollectionsWithType(.Moment, subtype: .Any, options: fetchOptions) if let first_Obj:AnyObject = collection.firstObject { self.assetCollection = first_Obj as! PHAssetCollection } 回答1:

How to fetch all photos from library

為{幸葍}努か 提交于 2019-12-21 02:16:49
问题 The code shown below is what i've tried already.What I wish to achieve is to fetch all the photos from the device.Currently only a few are being fetched.How to modify the code so as to load all the images from device? let fetchOptions = PHFetchOptions() let collection:PHFetchResult = PHAssetCollection.fetchAssetCollectionsWithType(.Moment, subtype: .Any, options: fetchOptions) if let first_Obj:AnyObject = collection.firstObject { self.assetCollection = first_Obj as! PHAssetCollection } 回答1: