Announcement Announcement Module
No announcement yet.
Facebook Question creation Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Facebook Question creation


    This is praveen i am trying to post a question and options in to the facebook wall.

    In Spring Social How it is possible please help me..

    I am trying into the graph api but it had error


    the error is
    "error": {
    "message": "An access token is required to request this resource.",
    "type": "OAuthException",
    "code": 104

    in Graph API Explorer fbid/questions?question=hai&options=[1111,22222]&method=post&page_access_token=*******

    the error is
    "error": {
    "message": "An unknown error has occurred.",
    "type": "OAuthException",
    "code": 1

    I read out all most all spring social facebook1.0.1 api but in this type functionality is not find out

    Please kindly help me


  • #2
    The first error is saying that you must have an access token in the request for it to work. I see you have a page_access_token parameter...I'm assuming that you're trying to use an access token for a Facebook page that you have admin rights to...but that's not what's needed here. You'll need to put the token either in the Authorization header or you'll need to send it as an access_token parameter.

    Also, I see you are using query parameters, but I'm assuming that you're doing a POST request. Why send those as query parameters and not as form parameters?

    You're right that Spring Social Facebook does not have API binding support for questions in 1.0.1, but the current 1.1.0.BUILD-SNAPSHOT code does have it via the QuestionOperations interface ( You can have a look at the unit tests for some clues on usage: