0

Im using Facebook Graph API to get all images for a user,i get the width,height,url. I need to get image size (bytes),I use some way to know image size by sending 'HttpWebRequest' to url and read content-length from the response , so is there a way to know the image size(bytes) for image from the facebook api?

Abd
  • 513
  • 1
  • 7
  • 26

1 Answers1

1

I don´t think there is a way with the Graph API, but you can download the image with your server language. For example, with PHP: http://php.net/manual/function.getimagesize.php

You can also get the size with JavaScript, here´s more information about that: How to Preview Image, get file size, image height and width before upload?

Community
  • 1
  • 1
andyrandy
  • 72,880
  • 8
  • 113
  • 130