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

Show how to use Pictures from facebook in documentation #3

@aphillipo

Description

@aphillipo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions