iOS:如何使用Twitter工具包获取当前趋势主题

iOS:如何使用Twitter工具包获取当前趋势主题,ios,twitter,twitter-fabric,Ios,Twitter,Twitter Fabric,我已经在我的iOS应用程序中安装了Fabric&Twitter工具包,我想知道我需要采取什么步骤才能从Twitter上抓住当前的热门趋势 我环顾四周,有关于这方面的文档,我有一个端点:,然而,这似乎不起作用 以下是用户登录后的我的代码: TWTRLogInButton *logInButton = [TWTRLogInButton buttonWithLogInCompletion:^(TWTRSession *session, NSError *error) { if (sessi

我已经在我的iOS应用程序中安装了Fabric&Twitter工具包,我想知道我需要采取什么步骤才能从Twitter上抓住当前的热门趋势

我环顾四周,有关于这方面的文档,我有一个端点:,然而,这似乎不起作用

以下是用户登录后的我的代码:

 TWTRLogInButton *logInButton = [TWTRLogInButton buttonWithLogInCompletion:^(TWTRSession *session, NSError *error) {

    if (session) {
        NSLog(@"%@ logged in", [session userName]);
        [[PFUser currentUser] setObject:[session userName] forKey:@"twitterLink"];
        [[PFUser currentUser]saveInBackground];

        //try and get the trending topics

        NSURL *topicsURL = [NSURL URLWithString:@"https://api.twitter.com/1.1/trends/place.json?id=1"];

        NSData *jsonData = [NSData dataWithContentsOfURL:topicsURL];

        if (jsonData == nil) {
            //no internet / no data
        }
        else{
            NSLog(@"TOPICS DATA %@", jsonData);
        }
    }
我相信这个问题与验证用户有关,Twitter工具包是否仅仅通过登录来验证用户的api调用