本文整理匯總了Python中pyfb.Pyfb.get_statuses方法的典型用法代碼示例。如果您正苦於以下問題:Python Pyfb.get_statuses方法的具體用法?Python Pyfb.get_statuses怎麽用?Python Pyfb.get_statuses使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類pyfb.Pyfb
的用法示例。
在下文中一共展示了Pyfb.get_statuses方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: data
# 需要導入模塊: from pyfb import Pyfb [as 別名]
# 或者: from pyfb.Pyfb import get_statuses [as 別名]
print "-" * 40
print "Name: %s" % me.name
print "From: %s" % me.hometown.name
print
print "Speaks:"
for language in me.languages:
print "- %s" % language.name
print
print "Worked at:"
for work in me.work:
print "- %s" % work.employer.name
print "-" * 40
#Customizing operations using params
#See https://developers.facebook.com/docs/reference/api/ for a complete list of params
#Gets status about myself
params = {}
#Parameters that enable you to filter and page through data (limit, offset)
params["limit"] = 1
params["offset"] = 1
#You can restrict the fields returned in a search using the fields parameter
params["fields"] = "message"
message = facebook.get_statuses("me", params)[0].message
print message