Results 1 to 2 of 2

Thread: Total number of Facebook group members

  1. #1
    Join Date
    Nov 2006
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Total number of Facebook group members

    Hello, I am trying to understand how to display the total number of Facebook group members. I managed to put this code together, but when I load it the page is blank:

    Code:
    <?php
        require('facebook.php');
        $config = array(
            'appId' => '350224611710644',
            'secret' => 'a604150d3b8184002d1f04448724d17c',
            'cookie' => true
        );
        $facebook = new Facebook($config);
        $query = urlencode('SELECT count(uid) from group_member WHERE gid = 457030854323270 limit 500 offset 500');
        try {
            $fbData = $facebook->api("/fql?q={$query}");
        } catch (FacebookApiException $e) {
            $fbData
    		 = $e->getResult();
        }
    ?>

  2. #2
    Join Date
    Apr 2012
    Location
    Chester, Cheshire
    Posts
    329
    Thanks
    7
    Thanked 35 Times in 35 Posts

    Default

    You might want to edit your post. Your SECRET App code is labeled secret for a reason. The longer it is visible on this or any other site, the less secure your application is. Blank out your secret key.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •