如何获得fb帖子的评论和喜欢次数?

时间:2019-06-04 07:14:44

标签: facebook-graph-api

我想使用Js SDK获得fb页面的喜欢和评论数。最新版本的Fb图不允许使用旧方法。请帮我解决这个问题。

1 个答案:

答案 0 :(得分:1)

您是否查看了图形API上feed的文档?这个电话:

Sub TableWordColorReplace()

Dim C As Cell
Dim tableCount As Long
Dim Ctr As Integer
Dim backColor As Long
Dim i As Long
Dim range As range
Dim TargetList

tableCount = ActiveDocument.Tables.Count  'to account for any/all tables in the document

TargetList = Array("word1", "word2", "word3")


For Ctr = 1 To tableCount  'cycle thru each table in the document
    For Each C In ActiveDocument.Tables(Ctr).range.Cells  'search in every cell in the table
        backColor = C.Shading.BackgroundPatternColor  'the color I want to change the found text to
        For i = 0 To UBound(TargetList)  'cycle thru each word in the list
            With C.range.Find
                .Text = TargetList(i)
                With .Replacement
                    .Text = TargetList(i)
                    .ClearFormatting
                    .Font.Color = backColor  'this is where I expect the word color to change, but it doesn't
                End With
                .Execute Replace:=wdReplaceAll
            End With
        Next
    Next C
Next Ctr

End Sub

将获得页面帖子的喜欢和评论,包括每个帖子的total_count。