donglu5728 2017-02-13 16:37
浏览 93
已采纳

Facebook令牌永久解决方案的洞察数据?

As of right now we have a couple facebook apps(different one for each client), all of which use extended user tokens to access insights data of campaigns and adsets.

Is there a way to get permanent access to campaign's insights information with a token that never expires? If not, should we just make a dashboard and nag-mail that makes us manually generate new tokens, or is there a way to generate new token and extend it programmatically?

  • 写回答

1条回答 默认 最新

  • drc4925 2017-02-15 11:43
    关注

    You can exchange your token for a permanent one, just go to this url :

    https://graph.facebook.com/oauth/access_token?grant_type=fb_exchange_token&client_id=[APP_ID]&client_secret=[APP_SECRET]&fb_exchange_token=[TOKEN]
    

    It will return a permanent token (until user revokes the application or change his FB password) and a "expires" value, but it's a permanent one, you can verify it's a permanent one by using the token debugger : https://developers.facebook.com/tools/debug/accesstoken/

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 sub地址DHCP问题
  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突
  • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大