Skip to content

Commit

Permalink
add comments and specify version=2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Madurski committed Mar 1, 2015
1 parent 4679e25 commit 7d1d691
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/test_facebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,10 @@ def test_auth_url(self):

class TestGetObject(FacebookTestCase):
def test_get_object(self):
# The value we are passing as 'fields' is valid only in 2.1+.
graph = facebook.GraphAPI(access_token=facebook.get_app_access_token(
self.app_id, self.secret))

self.app_id, self.secret, version=2.1))
# We should be able to use 'id' as a keyword argument.
graph_obj = graph.get_object(
'', id='http://facebook.com', fields='og_object{comments}')

Expand Down

0 comments on commit 7d1d691

Please sign in to comment.