1
votes

I am using AGImagePickerController for selecting the multiple images at a time and get its information. It is working fine and getting the selected image array like this:

ALAsset - Type:Photo, URLs:{\n \"public.jpeg\" = \"assets-library://asset/asset.JPG?id=C2CFE6EA-8B51-45BB-934A-486DDC1454B5&ext=JPG\";\n}", "ALAsset - Type:Photo, URLs:{\n \"public.png\" = \"assets-library://asset/asset.PNG?id=D8B1E72A-A53F-4DC6-B0EC-21508CB4FA00&ext=PNG\";\n}

But I don't know how to further use this to get the image and send it to facebook. If anyone know how to get the image from above url please help me out.

Thanks in advance.

1

1 Answers

1
votes

In your

  -(void)agImagePickerController:(AGImagePickerController *)picker didFinishPickingMediaWithInfo:(NSArray *)info
{

     for(ALAsset *asset in info)
    {
       ALAssetRepresentation *rep = [asset defaultRepresentation];
        UIImage *img = [UIImage imageWithCGImage:[rep fullResolutionImage]];
        NSLog(@"%@",img);
    }
}

Here are 2 screenshots

enter image description here

enter image description here