Objectivec: fb error message

I created an ios application and want to post a comment on the article and a comment on this article. But I can’t make it work.

  • Comment on the article: I am testing the "post_id / comments" graph using post_id, which I found on the "Debug Object" page. I got the error "500" when I sent the ios SDK and

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

when i sent a message https://graph.facebook.com/{post_id}/comments

  • Post a comment on a comment: I used the graph "commentID / comments", I got a 400 error when I sent ios sdk, and

    {"error": {"message": "(# 100) Invalid fbid.", "type": "OAuthException", "code": 100}}

when i sent a message https://graph.facebook.com/{commentID}/comments

+5
source share
1 answer

I think you are doing it right, but you just need to have an authentication problem.

Before commenting or posting, you must be logged in or your session must be active. Check if your session is active or not.

First, call [myDelegate authenticateFacebookUser];and then call the method to post a comment.

0
source

All Articles