Facebook API & Spring Social -- how to post a friends wall
Asked Answered
F

1

2

I have a facebook app set up to require the extended permission 'publish_stream' (Settings >> Permissions >> Extended Permissions: 'publish_stream'.

I also have the hidden input field named "scope" with a value including "publish_stream".

When I publish an update via

<Facebook>.feedOperations().post(<friendId>, "<message>")

I get the following exception:

org.springframework.social.OperationNotPermittedException: (#200) Feed story publishing to other users is disabled for this application
    org.springframework.social.facebook.api.impl.FacebookErrorHandler.handleFacebookError(FacebookErrorHandler.java:113)
    org.springframework.social.facebook.api.impl.FacebookErrorHandler.handleError(FacebookErrorHandler.java:60)
Feathers answered 8/12, 2012 at 10:3 Comment(1)
is your issue solved ? If yes then i need help towards that.Grobe
P
6

The possibilty to post to friend’s walls via API will be removed in February 2013 – https://developers.facebook.com/roadmap/#february-2013:

“We will remove the ability to post to a user's friends' walls via the Graph API. Specifically, posts against [user_id]/feed where [user_id] is different from the session user, or stream.publish calls where the target_id user is different from the session user, will fail.”

If it fails for your app already, maybe you have the corresponding migration enabled in your settings?

Anyway, not much point in developing such a thing now, since it won’t work any more in a few weeks.

Photogene answered 10/12, 2012 at 10:13 Comment(1)
THANKS A LOT! -- took me hours but that fixed it.Feathers

© 2022 - 2024 — McMap. All rights reserved.