我正在使用messenger bot,它將在fb帖子上執行和分享動作。喜歡在Facebook上發佈的API
我的問題是:Facebook是否允許應用程序通過圖形API來爲用戶分享和分享帖子?
我發現了一些關於og.likes的Open Graph文檔,但我不知道它是否被棄用。 (鏈接:https://developers.facebook.com/docs/opengraph/guides/og.likes/)。我已經提出了一些示例請求並創建了類似的開放圖形對象,但帖子不被喜歡。我沒有看到我的帳戶有任何操作。
請求作出:
fb.api('me/og.likes', 'post',
{object: https://www.facebook.com/permalink.php?story_fbid=55431741576&id=38441731099'}, ...);
對象已創建:
{ end_time: '2016-06-17T07:14:48+0000',
start_time: '2016-06-17T07:14:48+0000',
type: 'og.likes',
application:
{ category: 'Utilities',
link: 'https://apps.facebook.com/messenger-bot/',
name: 'Test1',
namespace: 'messenger-bot',
id: '173992418' },
comments:
{ data: [],
can_comment: true,
comment_order: 'chronological',
count: 0 },
from: { name: 'Bartłomiej Pasik', id: '122387551' },
likes: { data: [], can_like: true, count: 0, user_likes: false },
no_feed_story: false,
publish_time: '2016-06-17T07:14:48+0000',
data:
{ object:
{ id: '95990823123',
type: 'website',
url: 'https://www.facebook.com/permalink.php?story_fbid=55431741576&id=38441731099' } },
id: '1210344228' }