简体   繁体   English

如何在我自己的Facebook页面(graph-api)上发布而不在Facebook开发人员上创建应用程序

[英]How to publish on my own Facebook Page (graph-api) without creating an App on Facebook developer

I have several Facebook pages, to manage them all (publish photo or generally post as the page), I've created a simple script in python which needs the Page ID and the Access Token. 我有几个Facebook页面,要全部管理它们(发布照片或通常作为页面发布),我已经在python中创建了一个简单的脚本,该脚本需要Page ID和访问令牌。
To get the Access Token I need to make a Facebook app. 要获取访问令牌,我需要制作一个Facebook应用。
I'm able to publish on my facebook pages using the access token taken from https://developers.facebook.com/tools/explorer/ . 我可以使用从https://developers.facebook.com/tools/explorer/获取的访问令牌在我的Facebook页面上发布。
The problem is that if I don't set the app status to live, the post on the FB Page are not visible. 问题是,如果我未将应用程序状态设置为实时,则FB页面上的帖子不可见。
If I change the app status to live, I no longer have the permission required to publish, because I need to submit the app for review, but the script that I created doesn't fall in any of the categories listed; 如果我将应用程序的状态更改为实时,则我不再具有发布所需的权限,因为我需要提交该应用程序以供审核,但是我创建的脚本不会属于列出的任何类别。 ie Facebook Web Games, Website, iOS, etc. 即Facebook网络游戏,网站,iOS等。
So my questions are: 所以我的问题是:

  • How do I make visible to the public the posts made by the app, leaving the app status as "In Development"? 如何使应用发布的帖子向公众公开,而将应用状态保留为“开发中”?

  • Is there a way to publish to a FB Page, without the need to create an app on FB? 有没有一种方法可以发布到FB页面,而无需在FB上创建应用程序?

If you are personally an admin of the pages, then using your personal user access token, you can request a page access token via the API. 如果您个人是页面的管理员,则可以使用个人用户访问令牌,通过API请求页面访问令牌。 Then use that to do the operation. 然后使用它进行操作。

https://developers.facebook.com/docs/pages/access-tokens/#page-access-tokens https://developers.facebook.com/docs/pages/access-tokens/#page-access-tokens

$ okurl https://graph.facebook.com/v3.1/me/accounts?fields=access_token,name --token XXXXXXXXU
{
  "data": [
    {
      "access_token": "XXXX1",
      "name": "Page 1",
      "id": "99999999"
    },
    {
      "access_token": "XXXX2",
      "name": "Page 2",
      "id": "99999999"
    },
    {
      "access_token": "XXXX3",
      "name": "Page 3",
      "id": "99999999"
    },

当您启用应用程序时,旧的不可见帖子将公开。

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

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