trying to get app access token

前端 未结 5 1441
感动是毒
感动是毒 2020-11-28 04:55

I tried to get an app-access-token for my facebook app with this code:

APP_ACCESS_TOKEN = FB.api(
    \"oauth/access_token\",
    {client_id: APP_ID, client_         


        
5条回答
  •  臣服心动
    2020-11-28 05:47

    You can also use this POST endpoint without generating the token, just be sure its being called from the server not client-side where the app_secret is exposed to public:

    https://graph.facebook.com/?id={url}&scrape=true&access_token={app_id}|{app_secret}
    

提交回复
热议问题