Skip to content
This repository has been archived by the owner on Nov 12, 2021. It is now read-only.

Show how to use Pictures from facebook in documentation #3

Open
aphillipo opened this issue Feb 8, 2011 · 0 comments
Open

Show how to use Pictures from facebook in documentation #3

aphillipo opened this issue Feb 8, 2011 · 0 comments

Comments

@aphillipo
Copy link

Hi,

I had issues with getting images from Facebook - essentially I was doing:

img = g['me']['picture'] & ('type', 'large')
path = img()

To get the image. Of course Facebook gives you images not via a JSON response which means requesting ti parses the url which is not json but jpeg.

Instead you do this:

img = g['me']['picture'] & ('type', 'large')
path = img.url

Can we get automatic conversion from your request to the redirected url - this would be some awesome syntactic sugar and make the interface cleaner:

img = g['me']['picture'] & ('type', 'large')
path = img()

Path now works but because we know this is a request for a picture the pyFaceGraph code could intercept it, and, not parsing as json, instead passing the URL you would have been redirected to by Facebook's Graph API.

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

No branches or pull requests

1 participant