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 669541
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T00:09:44+00:00 2026-05-14T00:09:44+00:00

I am using Zend_Framework’s Zend_Controller_Action to build a facebook application. I followed the step

  • 0

I am using Zend_Framework’s Zend_Controller_Action to build a facebook application. I followed the step by step of this blog for guide :
http://blog.madarco.net/91/build-a-facebook-application-with-zend-framework/

public function indexAction() {
   require_once('facebook.php');
   $fb = new Facebook('1234567', '7654321');
   $user_id = $this->fb->require_login();
}

But the result is that the page went blank. Nothing happened.

As I use Smarty for the ‘viewing’ part, later I tried this following code :

{php}
require_once('facebook.php');
$facebook = new Facebook('1234567','7654321');
$user_id = $facebook->require_login();
{/php}

And it works.

I wonder what is wrong when I use Zend Framework to access Facebook API. Please help me on this one.

Thanks

  • 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-05-14T00:09:44+00:00Added an answer on May 14, 2026 at 12:09 am

    Try

    public function indexAction() { 
       require_once('facebook.php'); 
       $fb = new Facebook('1234567', '7654321'); 
       $user_id = $fb->require_login(); 
    } 
    

    (or on the other side of things…)

    public function indexAction() { 
       require_once('facebook.php'); 
       $this->fb = new Facebook('1234567', '7654321'); 
       $user_id = $this->fb->require_login(); 
    } 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I set up a Zend Framework application using Zend_Tool, but I wanted multiple modules
I am developing a web application using zend framework. For select statements I have
I have a PHP MVC application using Zend Framework. As presented in the quickstart,
I am working on a Facebook game which is developed using Zend framework. Right
I'm using Zend Framework for PHP and handling sessions with the Zend_Session module. This
i am wondering using Zend Framework's view helpers, ... code below ... $this->headLink()->prependStylesheet(css/style.css) ->prependStylesheet(css/prettify.css)
Note: I'm using Zend Framework, but I think most of this applies to PHP
I am using Zend Framework and 3rd party application written in php for file
Hi i'm using zend framework to do my application what i want to do
I'm using Zend_Mail in a Zend Framework application to send an e-mail with the

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.