Facebook API を介して友人のウォール投稿にコメントを投稿する方法が必要です (私は Python ラッパーを使用しています)。
Alice と Bob という 2 人のユーザーを考えてみましょう。両方のユーザーに read_stream および write_stream 権限があります。
>>> alice_graph = GraphAPI(alice_access_token)
>>> bob_graph = GraphAPI(bob_access_token)
# Alice makes a post on her own wall, which returns the objects Graph API id
>>> alice_graph.put_wall_post("test_message", attachment={'name' : 'some_name', 'link' : 'some_link')
{u'id': u'some_facebook_id'}
# Alice can comment
>>> alice_graph.put_comment('some_facebook_id', "test comment")
{u'id': u'some_other_facebook_id'}
# But Bob cannot comment
>>> bob_graph.put_comment('some_facebook_id', "test_comment")
*** GraphAPIError: (#100) Error finding the requested story
興味深いことに、これは Alice のウォール ポストにattachment
. Alice が添付ファイルなしでメッセージだけのウォール ポストを作成した場合は、この問題は発生しません。
添付ファイルのあるウォールポストと添付ファイルのないウォールポストの間で権限がどのように異なる可能性があるかについて、私は完全に混乱しています。
私が間違っていることを知っている人はいますか?