gpt4 book ai didi

jquery - Facebook 使用 jQuery/JavaScript 回复事件

转载 作者:行者123 更新时间:2023-12-01 03:52:05 24 4
gpt4 key购买 nike

我一直在尝试这个但没有成功。我已经使用 event_rsvp 权限以及访问 token 获得了用户身份验证,但每次我尝试回复某个事件时,它都不起作用。我通过单击按钮调用以下内容:

function attendingEvent() {
var url = 'https://graph.facebook.com/'+eventid+'/attending/'+userid+'?access_token='+accessToken;
$.post(url, function(data) {
$('#event_info').html(data);
});
}

出于某种原因,我什至没有收到“回调”。我做错了什么?

最佳答案

这应该可行,但正如 Colin 所说,请确保您正在发布请求。

如果用户已经参加了事件,则对 /{event id}/attending/{user id} 的 GET 请求将返回用户名和用户 ID 的数组,否则返回空数组

尝试Graph API Explorer调试这个

关于jquery - Facebook 使用 jQuery/JavaScript 回复事件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7543264/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com