我希望能够在我的个人资料中发布帖子,并向我自己的 Facebook 群组发布消息。我需要获得哪些权限以及如何获得? (应用程序图形 API)
import facebook
# Replace the access token with your own access token
access_token = 'YOUR_ACCESS_TOKEN'
# Create a Facebook Graph API object using the access token
graph = facebook.GraphAPI(access_token)
# Define the message you want to post
message = 'Hello, World! This is a test message.'
# Post the message to your Facebook wall
graph.put_object(parent_object='me', connection_name='feed', message=message)