如何在 facebook 测试页面上 post?
How to post on a facebook test page?
我正在尝试 post 在测试 Facebook 页面上,但它不起作用,这是我所做的:
window.FB.api(
'/https://graph.facebook.com/700757323715208/feed',
'POST',
{message:"Hello Fans", access_token:"{access_token}"
},
function(response) {
console.log(response) }
);
它正在渲染:
{id: "2568244933261615", url: "https://graph.facebook.com/700757323715208/feed"}
但它应该呈现如下内容:
{
"id":"1116692661689527",
"post_id":"546349135390552_1116692711689522"
}
正确版本:
window.FB.api(
'/me/feed',
'POST',
{message:"Hello Fans", access_token:"{access_token}"
}, function(response) {
console.log(response);
});
您不需要页面 ID,无论如何您都必须使用该页面的页面令牌。
我正在尝试 post 在测试 Facebook 页面上,但它不起作用,这是我所做的:
window.FB.api(
'/https://graph.facebook.com/700757323715208/feed',
'POST',
{message:"Hello Fans", access_token:"{access_token}"
},
function(response) {
console.log(response) }
);
它正在渲染:
{id: "2568244933261615", url: "https://graph.facebook.com/700757323715208/feed"}
但它应该呈现如下内容:
{
"id":"1116692661689527",
"post_id":"546349135390552_1116692711689522"
}
正确版本:
window.FB.api(
'/me/feed',
'POST',
{message:"Hello Fans", access_token:"{access_token}"
}, function(response) {
console.log(response);
});
您不需要页面 ID,无论如何您都必须使用该页面的页面令牌。