从 .CFM 文件发布到 Facebook 页面
好吧,我一直在为此绞尽脑汁,而且我正在深深地陷入访问令牌和 cfhttp 标签的困境中,所以我需要一些帮助来解决这个问题。
我现在的目标很简单(用文字来说)。我希望我的 Facebook 页面(而不是用户)的墙能够反映在 .CFM 文件的表单中输入的内容。我立即想到,哦,简单,我可以在提交时做一个 http post 。效果很好。我使用了在 Graph API Explorer 上找到的访问令牌,并将其发布到 Facebook 上,没有任何问题。
问题是,访问令牌过期了...
我意识到离线访问已被弃用。所以我去了 Facebook 的帮助页面,现在我的问题是,页面没有 app_secrets,这是更改 access_token 的过期时间所必需的。如何不断更新我的访问令牌,以便我的 .cfm 页面能够持续访问我的 Facebook 页面?
Ok, I have been racking my brain over this, and I am digging myself deep into a hole of access tokens and cfhttp tags, so I need some help with this one.
My goal at the moment is simple (in words). I want the wall of my Facebook PAGE (not user) to reflect what is entered into a form on a .CFM file. Immediately I thought, oh, easy, I can just do an http post on submit. That worked fine. I used the access token I found on the Graph API Explorer and it posted to Facebook with no problem.
The problem is, the access token expires...
I realize that offline access is deprecated. So I went to the help page on Facebook for that, and now my problem is, pages dont have app_secrets, which is required to change the expiration time on an access_token. How can I continually renew my access token so that my .cfm page will constantly have access to my Facebook Page?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您有应用程序,则有它的 sercet 位,只需检查应用程序设置的顶部即可。 :)
您可以在这里阅读有关“已弃用的offline_access”的更多信息:https://developers. facebook.com/docs/offline-access-deprecation/
If you have an app, you have the sercet bit for it, just check the top of the app's settings. :)
You can read more about "The deprecated offline_access" here: https://developers.facebook.com/docs/offline-access-deprecation/