2012-08-24 82 views
1

我打算使用內置Like for移動用戶,以及標準Like Button讓網頁用戶「喜歡」一個網頁。內置Like和Like按鈕

但是,內置Like功能有一個連接到Like按鈕(社交插件)?

從我的觀察:

在web版,之後我點擊了標準的Like按鈕,打開圖形對象可以跟蹤,像瞬間

調用fql?q=SELECT share_count, like_count, comment_count, total_count, click_count FROM link_stat WHERE url="http://websitelinkhere.com";

回報

{ 
    "data": [ 
    { 
     "share_count": 0, 
     "like_count": 1, 
     "comment_count": 0, 
     "total_count": 1, 
     "click_count": 0 
    } 
    ] 
} 

但是使用內置的Like,開放圖形對象根本無法跟蹤那個'like',like_count和total_count都是0

然後這裏是有趣的部分:

通過使用https://graph.facebook.com/userid/og.likes?access_token=myAccessToken

它返回兩個喜歡,1從Like按鈕和1個從內置喜歡動作

{ 
    "data": [ 
     { 
     "id": "10151050736776633", 
     "from": { 
      //skipped 
     }, 
     "start_time": "2012-08-24T07:10:52+0000", 
     "end_time": "2012-08-24T07:10:52+0000", 
     "publish_time": "2012-08-24T07:10:52+0000", 
     "application": { 
      //skipped 
     }, 
     "data": { 
      //skipped 
     }, 
     "type": "og.likes", 
     "no_feed_story": false, 
     "likes": { 
      "count": 0, 
      "can_like": true, 
      "user_likes": false 
     }, 
     "comments": { 
      "count": 0, 
      "can_comment": true 
     } 
     }, 
     { 
     "id": "10151050736586633", 
     "from": { 
      //skipped 
     }, 
     "start_time": "2012-08-24T07:10:42+0000", 
     "publish_time": "2012-08-24T07:10:42+0000", 
     "application": { 
      //skipped 
     }, 
     "data": { 
      //skipped 
     }, 
     "type": "og.likes", 
     "no_feed_story": false, 
     "likes": { 
      "count": 0, 
      "can_like": true, 
      "user_likes": false 
     }, 
     "comments": { 
      "count": 0, 
      "can_comment": true 
     } 
     } 
    ] 
} 
檢查我 og.likes

,然後使用由og.likes返回動作id,我可以使用刪除這兩個喜歡

curl -X DELETE \ 
    -F 'access_token=accessToken' \ 
    https://graph.facebook.com/10151050736776633 

curl -X DELETE \ 
    -F 'access_token=accessToken' \ 
    https://graph.facebook.com/10151050736586633 

是不是因爲我沒有我的應用程序提交給Facebook的審查了嗎?

我期待內置的Like和Like Button一起作爲一個動作,但不會獨立產生og.likes

謝謝你的時間。

+0

?您可以在Pages/Feed Stories上使用Like Button插件或實際的Like按鈕... –

+0

O對不起,我的意思是這個API https://developers.facebook.com/docs/opengraph/actions/builtin/likes/ –

回答