Post to a facebook page problem
Hi there,
I guess that this is something easy to do but still I cannot figure out how. I use SpringSocial to connect on facebook. The authorization is done successfully and the authorized user is administrator (Manager role) in one facebook page. What I want to do is to post on the wall of that facebook page. To do so I tried to use the following code:
Code:
PageOperations pageOperations = facebook.pageOperations();
pageOperations.post("xxxxxxxxxxxxx", "Hello");
The facebook page id used as the first parameter in the post method has been retrieved via the http call :
https://graph.facebook.com/page_name
I keep on getting the following exception which is rather very self-explained
Code:
org.springframework.social.facebook.api.PageAdministrationException: The user is not an administrator of the page with ID
Any idea what is going wrong?
Thanks in advance.
D.