How do I find my Facebook group ID?

前端 未结 8 563
暖寄归人
暖寄归人 2020-12-24 12:36

My Facebook Group Url is: http://www.facebook.com/groups/284064464943140/ I\'ve read that the group ID is in the Url labelled \"id=\" or \"groupid=\" but assume this has cha

相关标签:
8条回答
  • 2020-12-24 12:57

    Based upon graph api, you can get group ids as follows:

     $facebook->api( '/'.$userId.'/groups', 'GET', array( 'access_token=' => $userToken ));
    

    by iterating through its results.

    0 讨论(0)
  • 2020-12-24 12:58

    If you need the id for more group for which you are admin, a faster method will be to use facebook's Graph Explorer tool. You need to get access token for 'user_groups' 'user_managed_groups' and make a request by adding groups field:

    me?fields=groups
    

    click submit. This will print all of the groups you are member of and corresponding IDs.

    Update: Sorry folks, it seems that Facebook is pulling out the API for groups you don't manage. This whole topic might be obsolete.

    0 讨论(0)
  • 2020-12-24 12:59

    1) Go to Facebook (www.facebook.com)

    2) Click on the little triangle on the top right

    3) Select "Manage Groups"

    4) Ensure you are on the "Groups" not "Discover" tab (check top left for that)

    5) Click on your group

    6) Look at your URL from your web browser, it will display something like http://www.facebook.com/groups/12345/about

    12345 would be your group in this case.

    I hope this helps

    Regards

    Heider

    0 讨论(0)
  • 2020-12-24 13:01

    For finding any facebook group_id or page_id or user_id go to inspect element of page and find these in meta tags.

    Group Id

     fb://group/Here_is_your_group_id
    

    Profile user_id

     fb://profile/here_is_your_user_id 
    

    Page Id

    fb://page/here_is_your_page_id
    
    0 讨论(0)
  • 2020-12-24 13:01

    You can look for post_form_id in the source code on Facebook but that is not always accurate.

    For groups that do not have the ID in the Facebook URL you can get the page or the group ID using this free simple online tool: http://whatismyfacebookid.com

    0 讨论(0)
  • 2020-12-24 13:16

    Try http://wallflux.com/facebook_id/, it will guide you through it,

    0 讨论(0)
提交回复
热议问题