使用图形API张贴到粉丝专页的粉丝页面(而不是作为一个用户) [英] Using Graph API to post to fan page as the fan page (not as a user)

查看:225
本文介绍了使用图形API张贴到粉丝专页的粉丝页面(而不是作为一个用户)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

需要帮助。我有一个使用离线权限的身份验证令牌张贴到一个粉丝页面和我图形API code。我似乎无法弄清楚如何得到它发布到一个粉丝页面的作为粉丝页的。该API浏览器只能作为一个个体。当我做的网页的使用Facebook为...,并尝试使用资源管理器,它告诉我它有恢复我回到第一个是我。因此,身份验证令牌是我个人的帐户,而不是转页扇帐户。该身份验证令牌有manage_pages的权限,但只是让我邮寄给页面的我。

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.

任何人有答案或知道在哪里可以找到一个?搜索在FB,冰,谷歌都拉起这个具体问题没有。

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! ;)

推荐答案

查看身份验证文档的标题下应用程序登录。你需要的所有信息有...

你有权要求一个访问令牌的页面,而不是为用户 - 那么所有上传您是系代表页面


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.


https://graph.facebook.com/oauth/access_token?
     client_id=YOUR_APP_ID&client_secret=YOUR_APP_SECRET&
     grant_type=client_credentials

抓取该URL会给你正确的访问令牌后,您的网页。

Fetching that url will give you the correct access token to post as your page.

这篇关于使用图形API张贴到粉丝专页的粉丝页面(而不是作为一个用户)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆