restFb中的长轮询如何实现此功能

时间:2018-10-23 16:28:05

标签: java facebook-graph-api

我正在使用Vk客户和Facebook客户 目前,我已经实施了vk长期投票

public VkService longPoll() throws Exception {
        LongpollParams longpollParams = vk.
            messages().
            getLongPollServer(userActor).
            execute();
        // Unfortunately, VK Java SDK doesn't specifies protocol that's
        // suitable for Long Poll server. So we have to do it by hand.
        String fullUrlToServer = "https://" + longpollParams.getServer();
        vk.longPoll().
            getEvents(
                fullUrlToServer,
                longpollParams.getKey(),
                longpollParams.getTs()).
            waitTime(LONG_POLL_TIMEOUT_IN_SECONDS).
            executeAsString();
        return this;
    }

但是我已经搜索过,但是找不到针对Facebook或类似产品的长期民意调查,有什么建议吗?

0 个答案:

没有答案