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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:25:59+00:00 2026-06-13T12:25:59+00:00

I need to display all Facebook events inside a group. I know the group

  • 0

I need to display all Facebook events inside a group. I know the group id and the creator id but I am unable to display them.

I always get NULL values in the return, as if they don’t exist. How can I get this code to work?

  • The group is public
  • I want to display the events on a external page even if the user is not logged in so every visitor sees the events of this group.

Code:

facebook = new Facebook(
    array('appId' => $this -> params -> get('appid'), 
          'secret' => $this -> params -> get('secret'), 
          'cookie' => true, // enable optional cookie support
         )
    );

// Get the current access token
$access_token = $facebook->getAccessToken();

$fql = "SELECT name, pic, eid, start_time, end_time, location, description, update_time from event WHERE creator=XXXXXXXXXXX and eid IN ( SELECT eid FROM event_member WHERE uid = " . $this -> params -> get('idfbpage') . ")";    

$fqlResult = $facebook -> api($param);

Returns null lines, even all the events created by that creator would be OK assuming that they create events ONLY for this group.

  • 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-13T12:26:00+00:00Added an answer on June 13, 2026 at 12:26 pm

    Did you try with the Graph API?

    /[group-id]/events
    

    I just tried it, and it delivers me all the events from a group, i also get older ones. You can also get the owner of the event easily:

    /[group-id]/events?fields=owner
    

    You can do this with just an app access token, which is created like this:

    $access_token = FBAPPID . '|' . FBSECRET;
    

    If there is a solution with the Graph API, you should always go for it. FQL is a pain.

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

Sidebar

Related Questions

I have a need to display some basic info about a facebook group on
I need to display all tags for future posts (e.g for a events). I
I need to display all the employees in one webpart. I created the gridview
I need to display all enum values as tab items on TabControl, except one
With the new Cookie regulation, like all of us I need to display a
I need to display image and one button on fancybox popup but I can't
I need to display all tables that have zero records. I tried, select *
I need to display all my post titles in the sidebar of my Wordpress
i need to display all the photos as thumbnails in one window from my
In my application after getting my application Authorized by Facebook I get all their

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.