Permalink
Browse files

Better support for video uploads

  • Loading branch information...
1 parent c2f23a5 commit 2ce9ab3d5874085777976e0260932d812651a7dc @pcardune pcardune committed Sep 17, 2011
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/fbconsole.py
View
@@ -41,6 +41,7 @@
__all__ = [
'help',
'authenticate',
+ 'logout',
'get',
'post',
'delete',
@@ -56,7 +57,12 @@ def _get_url(path, args=None, graph=True):
args = args or {}
if ACCESS_TOKEN:
args['access_token'] = ACCESS_TOKEN
- subdomain = 'graph' if graph else 'api'
+ if graph:
+ subdomain = 'graph'
+ if '/videos' in path:
+ subdomain = 'graph-video'
+ else:
+ subdomain = 'graph' if graph else 'api'
if 'access_token' in args or 'client_secret' in args:
endpoint = "https://%s.facebook.com" % subdomain
else:

0 comments on commit 2ce9ab3

Please sign in to comment.