i am new to facebook app development and i am trying to post a simple text on the wall of the user using the https://graph.facebook.com/me/feed?access_token=ACCESS_TOKEN&message=hello but this does not seem to be working..Any thoughts as to where i might be going wrong?
Asked
Active
Viewed 1,767 times
1
-
i m using java servlets for app development and do not wish to make use of any third party api's – arpitsolanki Jun 06 '12 at 04:53
-
did not get any error..its just that nothing would happen..i would see all the posts on my wall – arpitsolanki Jun 06 '12 at 04:54
-
is this approach correct for posting? – arpitsolanki Jun 06 '12 at 04:55
-
are you actually using 'access_token = ACCESS_TOKEN' in the graph api call ? – FSP Jun 06 '12 at 04:55
-
Oh no..i am using the app token generated using graph api explorer – arpitsolanki Jun 06 '12 at 04:56
-
i am familiar with the procedd of OAuth and getting permissions and generating access tokens – arpitsolanki Jun 06 '12 at 04:56
2 Answers
0
- Check if you have permissions to post from the app.
- Add app_id to your call.

FSP
- 4,677
- 2
- 19
- 19
-
-
i do not think that i need to provide app id for this request.as far as i know app id is only used for getting code and access tokens – arpitsolanki Jun 06 '12 at 05:09
0
If you’re just calling the URL you mentioned, that would be a GET request. To post a message to the user’s wall you have to use method POST. You can test it in the Graph API Explorer – change the method to POST via the dropdown, click „add a field” and use name=message and value=your_message …

CBroe
- 91,630
- 14
- 92
- 150
-
ok thanks a lot ..that worked..but how can i make a post request through a servlet? – arpitsolanki Jun 06 '12 at 09:58