且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用C#(Facebook)发布到页面

更新时间:2023-12-02 18:20:16


我已经去了自己的manage_pages权限,但是如何通过API调用/ me / accounts来获取页面令牌?

I've gone and granted myself manage_pages permission but how do I make an API call to /me/accounts to get the page token?

你使用API​​,我假设在C#SDK中有一个等价的调用,用于 app.Post 作为 app.Get 。看到这是一个个人应用程序,您可以再次使用开发人员工具,从下拉列表中选择您的应用程序,自行为您授予 manage_pages 权限,然后调用 /我/帐户

You use the API, I'm assuming there is an equivalent call in the C# SDK for app.Post as app.Get. Seeing that this is a personal app, you can just use the developer tool again, select your app from the dropdown, grant yourself manage_pages permissions then call /me/accounts

页面的页面标记应该在结果中。

The page token for your page should be there in the result.

您也可以直接通过调用 PAGE_ID?fields = access_token

You can also directly get it via a call to PAGE_ID?fields=access_token