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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T10:19:08+00:00 2026-06-08T10:19:08+00:00

how to add facebook like features in zend based application ? is the code

  • 0

how to add facebook like features in zend based application ? is the code will be placed in view or in helpers ?

facebook.app_id = "APPID"
facebook.app_secret = "SECRET"

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-06-08T10:19:11+00:00Added an answer on June 8, 2026 at 10:19 am

    the easiest way to add facebook like in zend is by adding the code in helpers,
    later can be called from the view.

    class Application_View_Helper_GetFacebookLikeBox extends Zend_View_Helper_Abstract
    {
    public function getFacebookLikeBox()
    {
        $config = Zend_Registry::get('config');
        $app_id = $config['facebook']['app_id'];
    
        return '<iframe
                    src="//www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2FEXAMPLE&amp;
                        width=250&amp;height=284&amp;colorscheme=light&amp;show_faces=true&amp;border_color&amp;
                        stream=false&amp;header=false&amp;appId='.$app_id.'"
                    scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:250px; height:284px;"
                    allowTransparency="true">
                </iframe>';
    }
    }
    

    then from view just call $this->getFacebookLike(); will render the facebook like button.

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

Sidebar

Related Questions

i try to add facebook like button on my root domain that will like
I'd like to add in facebook comments to my rails blog application. Is there
I am using the following code to add Facebook Like button to my website
I'm using the Facebook JavaScript API to add 'like' buttons in an application. I've
I am developing an Android application for which I would like to add Facebook
We're trying to add Facebook Share & Like to an iOS game that we
I want to add twitter oauth just like facebook connect in my site like
I want to add animated pictures (GIF) on my wall like this http://www.facebook.com/tc.turkiy3m.tc?sk=app_4949752878 How
I want to add the facebook 'Like' button to my website, but the JavaScript
How do I add a FaceBook 'like' button to my master pages, does it

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.