我用python3.4
facebook-sdk 版本是 0.4
graph = GraphAPI("my access token")
profile = graph.get_object("me")
print(profile)
friends = graph.get_connections("me", "friends")
print(friends)
graph.put_object("me", "feed", message="I am writing on my wall!")
然后:
facebook.GraphAPIError: POST data should be bytes or an iterable of bytes. It cannot be of type str.
为什么会这样?