FBSDKAccessToken访问被拒绝Tinder API

时间:2016-09-25 20:11:28

标签: objective-c

我正在尝试通过发送FB令牌来获取Tinder API的身份验证令牌,如以下文档中所述: https://gist.github.com/rtt/10403467

我正在使用Objective c,我从FBSDK获取fb访问令牌。响应说我只是拒绝访问,所以我认为fb访问令牌有问题。我正在使用的Facebook测试用户帐户也已在Tinder上注册。 这有什么问题?

FB令牌:

NetworkConnector::NetworkConnector()
{
    _ios = new boost::asio::io_service();
    boost::asio::ip::tcp::resolver resolver(*_ios);

    _sock = new boost::asio::ip::tcp::socket(*_ios);

    boost::asio::connect(*_sock, resolver.resolve(boost::asio::ip::tcp::resolver::query{ SERVER_ADDRESS, SERVER_PORT }));
    _ws = new beast::websocket::stream<boost::asio::ip::tcp::socket&>(*_sock);
    _ws->handshake(SERVER_ADDRESS, SERVER_SERVICE_NAME);
}

...

NetworkConnector::~NetworkConnector()
{
    _ws->close(beast::websocket::close_code::normal);
    delete _sock;
    delete _ws;

    _ios->stop();
    delete _ios;
}

这是我的要求:

FBSDKAccessToken *token = [FBSDKAccessToken currentAccessToken];

0 个答案:

没有答案