【问题标题】:I want to delete comments by a post in facebook graph API我想通过 facebook graph API 中的帖子删除评论
【发布时间】:2017-09-15 06:50:34
【问题描述】:

当我使用帖子({app_id}_{post_id}) 生成时,我认为删除/links 不支持。但是删除 `'/feed 是否带有链接字段不支持。POST 删除正确,但我想通过 facebook graph API 中的帖子删除 cmets。

【问题讨论】:

    标签: javascript php facebook facebook-graph-api facebook-javascript-sdk


    【解决方案1】:

    嗨,如果不支持 POST 使用 GET ajax 不需要在循环下打开窗口以通过 URL 获取 GET 值。对于删除评论,你有一个 API:

    /* PHP SDK v5.0.0 */
    /* make the API call */
    $request = new FacebookRequest(
      $session,
      'DELETE',
      '/{comment-id}'
    );
    $response = $request->execute();
    $graphObject = $response->getGraphObject();
    /* handle the result */
    

    https://developers.facebook.com/docs/graph-api/reference/v2.9/comment/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-01-07
      • 2012-03-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-04-27
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多