delete comment && add comment on facebook

69 views
Skip to first unread message

sacchett...@gmail.com

unread,
Aug 27, 2014, 10:32:09 AM8/27/14
to fb_g...@googlegroups.com
Hy all,
i'm new of this gem, i have some error
I need to resolve to put an online web applications on behalf of a client.

Error 1: Add comment

code:

post = FbGraph::Post.new(params[:comment][:id_ref_facebook])
bool = post.comment!(
        :access_token => access_token,
        :message => params[:comment][:content]
    )

the comment is posting on facebook
receive this message:
FbGraph::Unauthorized (OAuthException :: An unexpected error has occurred. Please retry your request later.):
and the script is blocked and not receive the id of comment why??


Error 2: Del comment
code:
comment = FbGraph::Comment.new(params[:comment][:ref_id], :access_token => access_token ).destroy
the error:
FbGraph::InvalidRequest (OAuthException :: (#1705) Selected wall post for deletion does not exist.):
the comment_id is correct.

why?

sacchett...@gmail.com

unread,
Aug 27, 2014, 10:32:40 AM8/27/14
to fb_g...@googlegroups.com, sacchett...@gmail.com
Thanks for All.
Reply all
Reply to author
Forward
0 new messages