Facebook API & Spring Social - How to Post Friends Wall

I have a facebook application that requires the extended permission of publish_stream (Settings → Permissions → Advanced permissions: publish_stream.

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

When I post an update through

<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) 
+2
source share
1 answer

The ability to post to friends through the API will be removed in February 2013 - https://developers.facebook.com/roadmap/#february-2013 :

"We will remove the ability to send messages to the walls of friends of users through the Graph API. In particular, messages against [user_id] / feed, where [user_id] is different from the session user or stream.publish calls where target_id the user is different from the session user, not will be executed. "

If it no longer works for your application, is it possible that the corresponding migration is enabled in your settings?

In any case, there is not much point in developing such a thing now, since it will no longer work in a few weeks.

+6
source

All Articles