ios - Retrieving a cropped photo from the Facebook Graph API -
i have developed part of ios application involves using facebook's graph api accesses user's photos, , allows user crop image square desired zoom. images must squares. there way use graph api given rect parameter returns url of desired photo cropped rect? have done research , seems there isn't, hoping set of eyes on that.
assuming there isn't, sounds better idea:
- uploading cropped photo own servers future access.
or
- use own sql database store rect of cropping , url of photo (hosted facebook), , load full facebook photo , crop how want.
1 offers efficiency when loading data internet, means storing more data in own servers (this expensive in future)
2 means use less space on own servers, means entire photo forced loaded, parts won't used.
i'm leaning towards 2, don't deal web/database work hoping advice. thanks.
facebook transformations of pictures. not want might interesting take look:
https://developers.facebook.com/docs/graph-api/reference/photo https://developers.facebook.com/docs/graph-api/reference/platform-image-source/
@cbroe has point not store urls obtained facebook directly. try , save cropped picture on servers.
Comments
Post a Comment