Skip to content

Commit

Permalink
Merge pull request #261 from staranjeet/typo-fix
Browse files Browse the repository at this point in the history
Fix grammar issues with documentation and docstrings.
  • Loading branch information
martey committed Dec 31, 2015
2 parents 17f1eb2 + d93a303 commit 42655b1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/api.rst
Expand Up @@ -22,7 +22,7 @@ You can read more about `Facebook's Graph API here`_.
* ``access_token`` – A ``string`` that identifies a user, app, or page and can
be used by the app to make graph API calls.
`Read more about access tokens here`_.
* ``timeout`` - A ``float`` describing (in seconds) how long the client will
* ``timeout`` - A ``float`` describing (in seconds) how long the client will be
waiting for a response from Facebook's servers. `See more here`_.
* ``version`` - A ``string`` describing the `version of Facebook's Graph API to
use`_. Valid API versions are ``2.0``, ``2.1`` and ``2.2``. The
Expand Down
8 changes: 4 additions & 4 deletions facebook/__init__.py
Expand Up @@ -102,11 +102,11 @@ def __init__(self, access_token=None, timeout=None, version=None,
self.version = "v" + default_version

def get_object(self, id, **args):
"""Fetchs the given object from the graph."""
"""Fetches the given object from the graph."""
return self.request(self.version + "/" + id, args)

def get_objects(self, ids, **args):
"""Fetchs all of the given object from the graph.
"""Fetches all of the given object from the graph.
We return a map from ID to object. If any of the IDs are
invalid, we raise an exception.
Expand All @@ -115,7 +115,7 @@ def get_objects(self, ids, **args):
return self.request(self.version + "/", args)

def get_connections(self, id, connection_name, **args):
"""Fetchs the connections for given object."""
"""Fetches the connections for given object."""
return self.request(
"%s/%s/%s" % (self.version, id, connection_name), args)

Expand All @@ -127,7 +127,7 @@ def put_object(self, parent_object, connection_name, **data):
graph.put_object("me", "feed", message="Hello, world")
writes "Hello, world" to the active user's wall. Likewise, this
will comment on a the first post of the active user's feed:
will comment on the first post of the active user's feed:
feed = graph.get_connections("me", "feed")
post = feed["data"][0]
Expand Down

0 comments on commit 42655b1

Please sign in to comment.