Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send a Basic Text can not tto send from pyfacebook #250

Open
Antonkoch999 opened this issue Dec 5, 2023 · 0 comments
Open

Send a Basic Text can not tto send from pyfacebook #250

Antonkoch999 opened this issue Dec 5, 2023 · 0 comments
Labels
question Further information is requested

Comments

@Antonkoch999
Copy link

I try to send text message with help this enpount: https://developers.facebook.com/docs/messenger-platform/send-messages/

but if I do

        data = {"recipient": {"id": recipient_id}, "message": {"text": message}}
        return GraphAPI(
            app_id=settings.FACEBOOK_APP_ID,
            app_secret=settings.FACEBOOK_APP_SECRET_KEY,
            access_token=access_token,
            version=self.version,
        ).post_object(object_id=page_id, connection="messages", data=data)

I have a problem, recipient is empty, because if I send data=data, {"recipient": {"id": recipient_id}} become recipient=id

@MerleLiuKun MerleLiuKun added the question Further information is requested label Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants