Facebook API。参加活动 [英] Facebook API. Attend to the event

查看:102
本文介绍了Facebook API。参加活动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的应用程序中的Facebook feed视图中参加活动。是否可以通过Graph API的POST请求?

I would like to make possibility for attending to event in Facebook feed view in my app. Is it possible by POST-request of Graph API?

推荐答案

如果仍然可以,那么只需要做一个POST请求到主要端点。例如,使用JS SDK:

IF it´s still possible, then by just doing a POST request to the attending endpoint. For example, with the JS SDK:

FB.api('/[event-id]/attending', function(response){
    console.log(response)
});

Afaik它可能更早,您需要 rsvp_event 这个权限。

Afaik it was possible earlier, and you would need the rsvp_event permission for this.

编辑:我只是在API资源管理器中尝试过,它绝对有效: https://developers.facebook.com/tools/explorer/?method = POST& path = [event-id]%2Fattending& version = v2.5 (当然,您需要更换事件ID)

I just tried it in the API Explorer, it definitely works: https://developers.facebook.com/tools/explorer/?method=POST&path=[event-id]%2Fattending&version=v2.5 (of course you need to replace the event ID)

这篇关于Facebook API。参加活动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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