Programmatically getting an access token for using the Facebook Graph API

前端 未结 8 1011
我在风中等你
我在风中等你 2020-12-04 09:06

I am trying to put together a bash or python script to play with the facebook graph API. Using the API looks simple, but I\'m having trouble setting up curl in my bash scrip

8条回答
  •  我在风中等你
    2020-12-04 09:41

    You first need to set up an application. The following will then spit out an access token given your application ID and secret:

    > curl -F type=client_cred -F client_id=[...] -F client_secret=[...] https://graph.facebook.com/oauth/access_token
    

提交回复
热议问题