如何获取发布内容(Instagram Graph API)客户端的访问令牌?
我知道我可以使用此端点来获取访问令牌,以便能够将内容发布到 Instagram 企业帐户:
https://graph.facebook.com/{graph-api-version}/oauth/access_token?grant_type=fb_exchange_token&client_id={app-id}&client_secret={app-secret}&fb_exchange_token={your-access-token}
但此方法只是服务器端,因为您需要提供 client_secret。
我希望为 Django 项目实现此功能,因此我需要用户在客户端授权我的 Facebbok 应用程序将内容发布到他们的 Instagram。
我为 Instagram 基本显示找到了这个:
https://api.instagram.com/oauth/authorize?client_id={instagram-app-id}&redirect_uri={redirect-uri}&scope={scope}&response_type=code&state={state}
Can this be used for the Instgram Graph API?你有这方面的例子吗?因为我没能让它发挥作用。
I know I can use this endpoint to get an access token to be able to publish content to a instagram business account:
https://graph.facebook.com/{graph-api-version}/oauth/access_token?grant_type=fb_exchange_token&client_id={app-id}&client_secret={app-secret}&fb_exchange_token={your-access-token}
But this method is only server side as you'll need to provide your client_secret.
I'm looking to implement this for a Django project so I need the user to authorize on the client side my facebbok app to publish content to their instagram.
I found this for the Instagram Basic Display:
https://api.instagram.com/oauth/authorize?client_id={instagram-app-id}&redirect_uri={redirect-uri}&scope={scope}&response_type=code&state={state}
Can this be used for the Instgram Graph API? Do you have an example of this? Because I haven't been able to make it work.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论