Reputation: 24324
I am trying to post to friend's wall on my behalf, using the following code:
import facebook
graph = facebook.GraphAPI(TOKEN)
graph.put_object("/1000000000007/feed", "feed",{'message':'TEST'}") # Where `1000000000007` is a correct user id
The code above doesn't work - I've tried different syntaxes but it seems that I cannot get it right.
I have no problem posting on my own wall, I also have publish_stream
permission.
Upvotes: 0
Views: 1058
Reputation: 73984
It is not possible (anymore) to post to the wall of a friend, no serious App would do this anyway.
Also, publish_stream
is deprecated, you should use publish_actions
if you want to post on the wall of the authorized user.
Upvotes: 3