Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8548403
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T13:29:15+00:00 2026-06-11T13:29:15+00:00

I have installed FOSTwitterBundle and set up key on Twitter. I create this Action:

  • 0

I have installed FOSTwitterBundle and set up key on Twitter.

I create this Action:

public function twitterFirstAction(Request $request)
{
    $twitter  = $this->get('fos_twitter.service');
    $authURL  = $twitter->getLoginUrl($request);
    $response = new RedirectResponse($authURL);
    return $response;
}

It redirects to twitter and redirected back to twitterSecondAction()

public function twitterSecondAction(Request $request)
{
    $twitter = $this->get('fos_twitter.service');
    // now what
}

I checked the session, everything is fine. But now I get confuse how to make an API call. For example, list user’s followers.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T13:29:16+00:00Added an answer on June 11, 2026 at 1:29 pm

    FOSTwitterBundle has fos_twitter.api service which is TwitterOAuth class which allows you to do get, post and delete requests.

    So your second action can look like this:

    public function twitterSecondAction(Request $request)
    {
        $twitter = $this->get('fos_twitter.api'); //
        $idsOfFollowers = $twitter->get('followers/ids');
    }
    

    Please see twitter API documentation for possible actions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have installed mySQL using sudo apt-get install mySQL-server then i have installed libmysqlclient15-dev
I have installed bootstrap to my Rails 3.2 app this way (through Gemfile): gem
I have installed the m2e plugin for Eclipse and used it to create a
I have installed Python 3k(C:\Python30) and Visual Studio Professional Edition 2008. I'm studying this
I have installed Twitter Bootstrap Framework as a vendor in Symfony 2.1 using composer
I have installed RockMongo http://code.google.com/p/rock-php/ to manage my mongoDB database. This is installed in
I have installed an application as a service and set the DependOnService to be
I have installed Android SDK and packages. Since I had an error when opening
I have installed my dependencies using bundle package Then transferred them to the offline
I have installed the following components of SQL Server 2012: management tools - complete

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.