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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:02:23+00:00 2026-05-23T16:02:23+00:00

I want to display the facebook recommendations plugin when user is login into facebook.

  • 0

I want to display the facebook recommendations plugin when user is login into facebook. I don’t want to show the plugin when user is not logged into facebook because the result looks unpleasing. Is this even possible? How would I implement this to my site?

Thank you in adavance!
Maca

facebook social plugin (Recommendations)
https://developers.facebook.com/docs/reference/plugins/recommendations/

I already have the Javascript SDK like below implemented in the page. I also have jQuery1.5.2 loaded in the page.

    <div id="fb-root"></div> <script>  
     window.fbAsyncInit = function() {
         FB.init({
           appId  : 'APP ID',
           status : true, // check login status
           cookie : true, // enable cookies to allow the server to access the session
           xfbml  : true,  // parse XFBML
          channelUrl  : 'http://urltomysite.com/channel.html' // custom channel
         });   }; 

       (function() {
         var e = document.createElement('script');
         e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
         e.async = true;
         document.getElementById('fb-root').appendChild(e);
     }());</script>

Here is the tag for recomendations plugin

<fb:recommendations site="urltomysite.com" width="300" height="300" header="true" font="" border_color=""></fb:recommendations>
  • 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-23T16:02:24+00:00Added an answer on May 23, 2026 at 4:02 pm

    You can use FB.getLoginSTatus to check if a user is logged into FB. With the response from this function, you can decide whether to show your recommendation or not.

       FB.getLoginStatus(function(response) {
       if (response.session) {
             // logged in and connected user, someone you know
            } else {
            // no user session available, someone you dont know
            }
      });
    

    Also Check : Check if user is logged in New Facebook API

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

Sidebar

Related Questions

I'm trying to display Facebook profile pictures on my site, but don't want to
I want to display some text on twitter/facebook when a link is clicked on
i want to use facebook's fb:dialog tag to display a simple pop-up form for
I want to display tabular type data, but it will not be coming from
basically what i want to do is display a facebook photo album on my
I have a public website created with xPages, My user are not logged to
I have created a Page Tab Facebook App where I want to display different
I am working on a share button on facebook. I want it to display
i want to display facebook friends on my website and i want to use
i want to display images like facebook find friends page. i dont want to

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.