0

Javascript では、次のようにして多数のステータスを取得できます。

function buildObject() {
    FB.api('me?fields=statuses.limit(100).fields(message,from)', function(response) {

しかし、Python で同じことをしようとすると、有効なアクセス トークンに関するエラーが表示されます。しかし、修飾子を削除すると機能するので、何が問題なのかわかりません。

def findStatuses():
    print "digging through the Facebook API"
    graph = facebook.GraphAPI(accessToken)
    statuses = graph.get_connections("me", "statuses.limit(100)")
    for entry in statuses['data']:
        post = entry["message"]
        print post.encode("utf-8")

私が行っていない修飾子を使用する適切な方法はありますか?

4

1 に答える 1

1

無視。そのはず

    statuses = graph.get_connections("me", "statuses", limit=100)
于 2013-04-27T18:36:39.487 に答える