Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facebook cropping #2

Open
dpflug opened this issue Oct 10, 2010 · 2 comments
Open

Facebook cropping #2

dpflug opened this issue Oct 10, 2010 · 2 comments

Comments

@dpflug
Copy link

dpflug commented Oct 10, 2010

The official Facebook app, when setting a user's picture, uses the location of the user's tag in the photo (if present) to crop it. I don't know where to find the code for com.nloko.simplyfacebook.net.*, but https://graph.facebook.com/photo_fbid contains all the tags for that photo with "x" and "y" values. Doing some testing, those floating point numbers are percentages, not pixel values.

I'm not sure how you'd want to implement it. Maybe as a general option, passing optional coordinates with the picUrl, for other services that support tagging? Maybe someone will feel plucky and add facial recognition in the future.

If I could figure out how to get tags:data[foo]:x and tags:data[foo]:y where tags:data[foo]:id==uid with your JSON methods, I'd submit a patch.

@dpflug
Copy link
Author

dpflug commented Oct 10, 2010

I'm brilliant. :P http://github.com/nloko/simply-facebook

@nloko
Copy link
Owner

nloko commented Oct 12, 2010

haha..Feel free to have your way with it. It's rough, and could definitely use some love.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants