简体   繁体   English

Facebook页面上的Facebook帖子

[英]Facebook posts on facebook page

How can I make my (javascript) app to post to a Facebook page (that I own), without the need of explicit login (no pop-up windows) ? 如何使我的(javascript)应用程序发布到我拥有的Facebook页面,而无需显式登录(没有弹出窗口)?

From what I have read, I need a page_token to be able to post. 从我已阅读的内容中,我需要一个page_token才能发布。 Can I get this token using my credentials, or a facebook app ? 我可以使用我的凭证或Facebook应用程序获取此令牌吗? I want to create post when a user does something in my app, but I want to avoid asking my users for their passwords. 我想在用户在我的应用中执行某操作时创建帖子,但我想避免向用户询问其密码。 Thats's why I want to use my password for all users or use a facebook app for this. 这就是为什么我要为所有用户使用密码或为此使用Facebook应用程序的原因。

Can it be done ? 能做到吗?

You are right, you need a page access token to post on a page on he page's behalf. 没错,您需要页面访问令牌才能代表该页面张贴在页面上。

You can get a never expiring page access token that you can use while creating the posts. 您可以获得在创建帖子时可以使用的永不过期的页面访问令牌。 I've explained the procedure of getting the token with steps here: Get access token to facebook page - WPF . 我已经通过以下步骤解释了获取令牌的过程: 获取对Facebook页面-WPF的访问令牌

After you get this token, use this token with the call by adding the parameter access_token . 获得此令牌后,可通过添加参数access_token在调用中使用此令牌。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM