Closed steffen closed 10 years ago
There is options = {connection_scope: 'uploaded'}
would work.
FbGraph::Connections::Insights#insights
uses the connection_scope
option.
https://github.com/nov/fb_graph/blob/master/lib/fb_graph/connections/insights.rb
Of course, you can make an alias user.uploaded_photos
instead of calling user.photos(connection_scope: :uploaded)
though.
Oh, thanks so much. I didn't know about connection_scope and this is all I needed. I will close this issue then as /uploaded is supported. Thanks!
I found four api "edges" that don't seem to be supported by the fb_graph gem:
/{page-id}/photos/uploaded /{page-id}/videos/uploaded /{user-id}/photos/uploaded /{user-id}/videos/uploaded
See docs for /page/photos as example: https://developers.facebook.com/docs/graph-api/reference/page/photos/
The response is the same format as the response for /photos or /videos.
I'm thinking of adding a
def uploaded_photos(options = {})
method to FbGraph::Connections::Photos which callsphotos = self.connection "photos/uploaded", options
instead ofphotos = self.connection :photos, options
and abstracting the mapping into a private method to share it between photos and uploaded_photos.Any thoughts?