0

Im trying to write a script in python to convert group names to their ID. The way I am doing this is via

graph.facebook.com/search?q=GROUPNAME&type=group&access_token=XXXXX

I can create an access token through the graph API Explorer on developers.facebook.com under tools but this only lasts a couple of hours.

This must be possible as websites such as

http://lookup-id.com/
https://www.wallflux.com/facebook_id/

offer this service already

How can I make a permenant token? Ive tried looking around but most soloution involve only needing to access a single page/group you own.

Martyn
  • 806
  • 1
  • 8
  • 20

1 Answers1

0

As the Group Search needs an User Access Token, you'll not be able to get an eternal Access Token. The long-lived User Access Tokens are only valid for 60 days and need to be refreshed afterwards.

See

Tobi
  • 31,405
  • 8
  • 58
  • 90