1

I'm using the Facebook Graph API to reply a direct message.
I have published my message issuing an HTTP POST request to /CONVERSATION_ID/messages with a valid access token.
But I receive the following error:

{
  "error": {
    "message": "(#3) Unknown method",
    "type": "OAuthException",
    "code": 3
  }
}

The same test on the Graph API Explorer returned the same error.
Can anyone please help me out?

evotopid
  • 5,288
  • 2
  • 26
  • 41
Cheikh Lo
  • 11
  • 3

2 Answers2

1

My Workplace (Facebook for business) GRAPH API application received a "(#3) Unknown method" error when it didn't have POST or DELETE permissions for the action it was attempting. Changing the integration/application permissions resolved the problem for me.

Ryan
  • 11
  • 1
0

You don't need to add /messages to the API. Just call the API as https://graph.facebook.com/{message_id} to get the thread.

Niraj Shah
  • 15,087
  • 3
  • 41
  • 60
  • 1
    hello @NirajShah ,thanks for the answer. I have no problem for retrievng the thread, that work well. But i'm trying to send a message by calling the API as "/CONVERSATION_ID/messages" the thread.But it still don't work. – Cheikh Lo Jul 02 '12 at 10:58