【问题标题】:Creating an event-invite using the old REST API使用旧的 REST API 创建事件邀请
【发布时间】:2011-06-10 04:10:07
【问题描述】:

我无法使用 Graph API 执行以下操作,因此我尝试使用旧的 REST API 执行此操作, 但没有任何成功...没有错误消息,也没有邀请。

$restApi = $facebook->api(array(
            'method'  => 'events.invite',
        'eid' => $eid,
            'uids' => $testuserId,
        'personal_message' => 'testing',
            'access_token' => $accesstoken,
    ));
    print '<pre>' . print_r($restApi, true) . '</pre>';

或者也许你们中的一些人知道更好的方法......

【问题讨论】:

    标签: facebook api rest


    【解决方案1】:

    在 FB Bugzilla http://bugs.developers.facebook.net/show_bug.cgi?id=10070 上使用 Graph API 对 Event Invites 进行公开投票

    我认为您的问题是您需要 array 的 uid 尝试:

    $restApi = $facebook->api(array(
                'method'  => 'events.invite',
            'eid' => $eid,
                'uids' => array($testuserId),
            'personal_message' => 'testing',
                'access_token' => $accesstoken,
        ));
        print '<pre>' . print_r($restApi, true) . '</pre>';
    

    -迈克尔

    【讨论】:

    • 我也用一个数组尝试过它......什么都没有。我将发送一条带有 eventlink 的消息。也许这是最好的解决方案。但是感谢错误链接..也许有一天会添加此功能。
    • Please note: We are in the process of deprecating the REST API, and will be adding equivalent support to the Graph API for this method. You should continue to use this method until we announce support in the Graph API. 我想它也会被graph api支持,在其余的api将被删除之前。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-10-09
    • 1970-01-01
    • 2023-01-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-09-14
    相关资源
    最近更新 更多