2010-09-29 93 views
6

我想通過圖形API發佈到Facebook羣組牆上。當我發佈帖子時,帖子的所有者被設置爲我的個人ID。有人會知道如何讓Group擁有該帖子的擁有者。以下是我目前的代碼:Facebook圖形API - 發佈在羣組牆上作爲羣組

form_fields = { 
     "message": 'This is message title', 
     "link": 'http://facebook.com', 
     "name": 'This is message title', 
     "access_token": 'token here' 
    } 
form_fields['description'] = 'This is message body' 
form_data = urllib.urlencode(form_fields) 
response = urlfetch.fetch( url="https://graph.facebook.com/%s/feed" % group_id, 
            payload=form_data, 
            method=urlfetch.POST, 
            deadline=10 
           ) 

回答

5

你不能這樣做。這是該組和頁面之間的差異之一,在您作爲管理員發佈帖子的頁面中,該帖子的用戶是頁面而不是您的用戶標識,因此您無法讓某個組成爲擁有者使用Graph API的帖子。看到這個鏈接http://www.facebook.com/help/?page=904並搜索問題「頁面與組有什麼不同?」。

+0

謝謝你的回答 – vivpuri 2011-01-11 04:06:22