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

  • Home
  • SEARCH
  • 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 6333551
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T18:28:59+00:00 2026-05-24T18:28:59+00:00

I have created a small application , basically a quiz application ( I am

  • 0

I have created a small application , basically a quiz application ( I am about to launch that in a free web hosting website). I want to integrate that with Facebook. But there are mainly 2 issues.

  1. I want the application to be used only by FB users who are member of a particular group (Its a closed group) which i created.

  2. As soon as the quiz is over , the final score should be posted in the group wall.

PS: By integrate i mean , They can only begin the test when they signup using Facebook.
Any other ideas are welcomed.

  • 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-24T18:29:00+00:00Added an answer on May 24, 2026 at 6:29 pm

    There are quite a few things you’ll need to do. Assuming you’re using the FB JS SDK, you’ll need to use the following…

    • Request the publish_stream and user_groups extended permissions via FB.login
    • Post to the group wall via FB.api, eg… FB.api(‘/GROUP_ID/feed’, ‘post’, { message: ‘yay someone completed the quiz’ }, function(response) { alert(response); });

    Partial example using FB JS SDK (group checking unimplemented)…

    <a onclick="postToGroupWall()">Post msg to group wall</a>
    
    <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
            oauth : true // Enable oauth authentication
        });  
    
        FB.login(function(response)
        {
            if (response.authResponse)
            {
                alert('Logged in!');
    
                // Check if user is in group using opengraph call (/me/groups) via FB.api
    
                // Do that here...
            }
            else
            {
                alert('Not logged in - do something');
            }
        }, { scope : 'publish_stream,user_groups' });
    };
    
    window.postToGroupWall = function()
    {   
        var opts = {
            message : 'Yay I just completed the quiz',
            name : '',
            link : 'http://www....',
            description : 'Description here',
            picture : 'http://domain.com/pic.jpg'
        };
    
        FB.api('/GROUP_ID/feed', 'post', opts, function(response)
        {
            if (!response || response.error)
            {
                alert('Posting error occured');
            }
            else
            {
                alert('Success - Post ID: ' + response.id);
            }
        });
    };
    
    </script>
    
    <!-- FACEBOOK -->        
    <div id="fb-root"></div>
    <script>
    (function() {
      var e = document.createElement('script');
      // replacing with an older version until FB fixes the cancel-login bug
      e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
      //e.src = 'scripts/all.js';
      e.async = true;
      document.getElementById('fb-root').appendChild(e);
      }());
    </script>
    <!-- END-OF-FACEBOOK -->
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a small daemon (basically a console application that hides the console
I have created a small web application in java. And now I want to
I want to globalize my application. I have created a small form which asks
I have created a small Java application in which there is some code that
I have created small application on iOS and have worked on web-services in .Net.
We have a MVC3 application that we have created many small actions and views
I have created a small php script locally that runs a java application in
I have created a small application which opens,reads and creates Excel files. The app
I have created a small application using Microsoft .NET. I don't have problems with
I have created a small chatting application in C#, and started as a Console

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.