get Facebook Group Id using identifier or url

前端 未结 1 1870
伪装坚强ぢ
伪装坚强ぢ 2021-02-14 22:10

I would like to get a facebook group id by using a URL or specific identifier.

For ex: http://www.facebook.com/groups/chennaifoodies/ should give group

相关标签:
1条回答
  • 2021-02-14 22:59

    I don't think you can get the Group ID from the url you mentioned with the group username.

    But, you surely can get the same with the url:

    http://graph.facebook.com/search?q=chennaifoodies&type=group&access_token=ACCESS_TOKEN

    Yes, you'll be needing an active user access token to query this.

    Or, the graph API (the same thing)-

    /search?q=chennaifoodies
    

    Demo

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