在我的Facebook应用程序profil发布评论 [英] Publishing comments on my Facebook app profil

查看:142
本文介绍了在我的Facebook应用程序profil发布评论的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的服务器能够在我的Facebook应用程序墙上发布帖子。但是我想发布关于用户写在墙上的评论...当试图向给定的帖子ID发表评论时,我总是得到以下内容:



{error:{type:OAuthException,message:(#200)用户尚未授权应用程序执行此操作}} / p>

但是,我将所有可能的授权作为此应用程序的测试用户。
任何建议?



加号



我还尝试使用描述的方法 here
我使用的URL看起来像这样



curl_setopt($ ch,CURLOPT_URL, https://graph.facebook.com/'.$comment ['id']。'/ comments?'。$ access_token)



现在我收到以下消息



{error:{type:OAuthException,message:(#100 )无效的fbid。}}

解决方案

确定找到我自己的解决方案,有些人像我一样绊倒:


  1. 首先你需要应用这个真棒认证方法

  2. 需要使用以下
  3. / ol>

    curl_setopt($ ch,CURLOPT_POSTFIELDS,'& message = hello World');
    curl_setopt($ ch,CURLOPT_URL,'https://graph.facebook.com/'.$post ['id']。'/ comments?'$ access_token);
    / p>

    My server is able to publish posts on my Facebook app wall. But I would like to publish comments on user writing on the wall... When trying to post a comment to a given post ID I always get the following:

    {"error":{"type":"OAuthException","message":"(#200) The user hasn't authorized the application to perform this action"}}

    However I gave all possible authorization as a test user to this app. Any suggestion ?

    Addition.

    I also tried to use the method described here The URL I'm using looks like this

    curl_setopt($ch,CURLOPT_URL,'https://graph.facebook.com/'.$comment['id'].'/comments?'.$access_token)

    Now I get the following message

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

    解决方案

    OK found my own solution, but for the record since some people my stumble like me :

    1. first you need to apply this awesome authentification method.
    2. need to call facebook with the following

    curl_setopt($ch, CURLOPT_POSTFIELDS, '&message=hello World'); curl_setopt($ch,CURLOPT_URL,'https://graph.facebook.com/'.$post['id'].'/comments?'.$access_token);

    这篇关于在我的Facebook应用程序profil发布评论的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆