0

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.

1 Answer 1

3

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.

4
  • Is there any other way to do it (e.g. by simulating logging on Facebook)?
    – syntagma
    Oct 12, 2014 at 13:14
  • who would you want to log in? not to mention that this would be illegal.
    – andyrandy
    Oct 12, 2014 at 13:49
  • Why would logging in on my account be illegal?
    – syntagma
    Oct 12, 2014 at 17:32
  • "simulating logging on Facebook" - that is surely illegal :) - and i am not sure what the point would be, you could still not post on the wall of a friend. that´s just not going to happen, facebook does not allow it for a very good reason.
    – andyrandy
    Oct 12, 2014 at 17:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.