Facebook full permission AccessToken alternative to Offline access token

后端 未结 2 569
死守一世寂寞
死守一世寂寞 2021-01-12 08:25

Currently I am using desktop windows service to download my Facebook page insights/ page likes/friends etc. graph data . so, for that i have added app on my facebook page an

2条回答
  •  旧时难觅i
    2021-01-12 09:19

    Simple solution just call following functions using PHP SDK

    $facebook->setExtendedAccessToken();
    

    and after it get extented access token through

    $access_token = $facebook->getAccessToken();
    

    OR

    GET /oauth/access_token?  
        grant_type=fb_exchange_token&           
        client_id={app-id}&
        client_secret={app-secret}&
        fb_exchange_token={short-lived-token} 
    

提交回复
热议问题