2014-05-22 49 views
1

我有一個網絡應用程序,我們正在Facebook上發佈視頻。和網頁上的分享按鈕,以便再次從網頁分享視頻。 現在我要做的是同步份額。我試圖如果我們可以找到一種方式與post_id和page_id共享帖子。當URL獲取共享時,共享計數不會更新。與我分享facebook上的信息post_id

或任何想法,提示。

回答

1

這些是Facebook Graph中的兩個單獨的「事物」/對象,就像您目前使用它們一樣。我非常懷疑有一種同步方法。帖子是帖子,您顯示視頻的網頁是一個網址。

看一看下面FQLs:

帖子:select post_id, share_info from stream where post_id="{post_id}"

網址:select url, share_count from link_stat where url="{your_url}"

https://developers.facebook.com/docs/reference/fql/stream/ https://developers.facebook.com/docs/reference/fql/link_stat/

我認爲,如果你使用OpenGraph對象它應該工作:

0

我能夠嘗試一種黑客攻擊。圖片後的ajax網址的後半部分。和傳遞的參數到Facebook的共享者

https://www.facebook.com/ajax/sharer/?s=99&appid=2309869772&p%5B0%5D=100005537284043&p%5B1%5D=230045237190051&share_source_type=unknown

URL_PART2性:s = 99 &的appid = 2309869772 & P%5B0%5D = 100005537284043 & P%5B1%5D = 230045237190051 & share_source_type =未知

https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fstaging.littlecast.com%2Fshopconnect-upload%2F6739f117-3133-4842-bd91-81c888bbaf7c%2Fwall_post

URL_PART1:https://www.facebook.com/sharer/sharer.php

最終網址= URL_PART1 + URL_PART2

https://www.facebook.com/sharer/sharer.phps=99&appid=2309869772&p%5B0%5D=100005537284043&p%5B1%5D=230045237190051&share_source_type=unknown

如果我們分享這個,後會從帖子ID共享和股數獲取原帖更新。