使用Graph API以粉丝页面(而不是用户)的身份发布到粉丝页面
需要帮助。我有 Graph API 代码,它使用具有离线权限的身份验证令牌来以我的身份发布到粉丝页面。我似乎不知道如何将其作为粉丝页面发布到粉丝页面。 API Explorer 只能以个人身份工作。当我对页面执行“使用 facebook 作为...”并尝试使用资源管理器时,它告诉我它必须首先将我恢复为我自己。因此,身份验证令牌适用于我的个人帐户,而不是粉丝页面帐户。身份验证令牌具有管理页面权限,但这只是让我以我的身份发布到页面。
有人有答案或者知道我在哪里可以找到答案吗?在 FB、Bing、Google 上搜索都没有找到关于这个具体问题的信息。
当然,重点是,虽然我可以像我一样拥有自动化帖子,但这意味着该帖子不会显示为来自页面,因此大多数人不会看到它。需要成人监护! ;)
Need help. I have Graph API code that uses an auth token with offline permissions to post to a fan page as me. I can't seem to figure out how to get it to post to a fan page as the fan page. The API Explorer only works as an individual. When I do a "use facebook as..." for the page and try to use the explorer, it tells me it has to revert me back to being me first. So the auth token is for my personal account, not the fan page account. The auth token has the manage_pages permissions, but that just lets me post to the page as me.
Anyone have an answer or know where I can find one? Search on FB, Bing, Google all pull up nothing on this specific issue.
The point being, of course, that while I could have the automation post as me, that means that the post doesn't show as being from the page, so most people won't see it. Need adult supervision! ;)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
查看
应用登录
标题下的身份验证文档。您需要的所有信息都在那里...您必须请求页面的访问令牌,而不是用户的访问令牌 - 那么您发布的所有帖子都代表该页面。
获取该网址将为您提供正确的访问令牌,以将其发布为您的页面。
Check out the authentication documentation under the title
App Login
. All the information you need is there...You have to request an access token for the page and not for the user - then all post you make are onbehalf of the page.
Fetching that url will give you the correct access token to post as your page.
要发布到粉丝页面,您不仅需要管理页面权限,而且最重要的是您需要页面访问令牌,这是获取页面访问令牌的代码。
To post to fanpage u not only need a manage page permission but the most importantly u need a page access token,here's the code for getting page access token.
请参阅我的博客文章“如何发布到页面和作为页面”,网址为 http://bobbelderbos.com/2011/11/facebook-api-post-to-page-and-as-page/
一旦您拥有了manage_pages权限,每个页面都需要自己的访问代码。
请参阅博客文章以获取更多说明、演示和代码下载。
See my blog post "how to post TO a page and AS the page" at http://bobbelderbos.com/2011/11/facebook-api-post-to-page-and-as-page/
Once you have the manage_pages permission each page requires its own access code.
See the blog post for further explanation, demo and code download.