I want to send inbox messages on facebook with a attachment. Thats possible?
Reference: https://developers.facebook.com/docs/reference/api/message/
Facebook does not allow to send messages to users using Graph API (avoiding spam) with 1 exception, as a page you can reply to messages from users.
The only way of sending messages like that is using the Chat API (XMPP) but it is more complex
Not with the new Graph API, but the PHP-SDK; you can see it in the answer of Peter Bailey here:
Facebook Posting API Question
Related
Is there a way how I can send regular message to facebook page?
I got this:
https://github.com/Schmavery/facebook-chat-api
but it is unofficial.
When I've tried to send several messages sending account was blocked.
I have not found any info about limits or anything else connected to sending messages to Facebook pages.
In official Facebook documentation regarding messaging API there is nothing about sending message to Page. As bot is acting as Facebook Page itself I suppose it can't send message to another Facebook Page.
There is no API to send user to page messages, you can only send messages from page to user. And only if the receiver started the conversation first.
Don´t use unofficial ways, they are not allowed.
I developed while back a facebook graph api app that used the conversations edge to read messages and then reply back, this was done using the v2.3 version of the API.
Back then the API at
https://developers.facebook.com/docs/graph-api/reference/v2.3/conversation/messages#publish
stated that:
Note that a page can only reply to a user's message. It cannot
initiate a private message with a user. Also, a page can respond not
more than twice to a user's message before the user has replied back
But now i have to upgrade to v2.4 and i can't seem to find anywhere the above statement.
Does anyone now if this limit has been lifted?
https://developers.facebook.com/docs/graph-api/reference/v2.4/conversation/messages/
Pages can only reply to a message - they cannot initiate a conversation.
It´s right there, not all of it though. Just try to post more than 2 reply messages. I don´t think it has been lifted though, there is nothing about it in the changelog.
I want to send a private messages to my friends silently. So, I prefer FB.api method to send.
But, I could not find the best solution for my problem.
Send Dialog api sends in FB.ui method and can't send more than 1 at a time. It expects a form submission.
Feed Dialog api is a public post. I think, I'm right.
My exact scenario is, I have huge number of messages in my app. I will select and send to my friends. It would not displayed on their wall. I mean it should not be a public. It should be a private message.
Please send your ideas.
Facebook do not provide any api for this, but provide chat api, so you can send messages via it.
for more details see https://developers.facebook.com/docs/chat/
I use facebook SDK javascript to post a message from a website to my wall on facebook.
When I post, I can choose the users who can read my message.
Can I change the script to send a message directly to one or any users automatically?
To send a private message through facebook API is not intended behavior. to prevent spam it is assumed. This can be overcome by sending an email to facebook_username#facebook.com and it will appear as an instant message to the user. This is NOT an intended solution however and it is EXPRESSLY discouraged in the facebook docs.
I am new on Facebook API. I want to send message to friend with facebook api. I am developing a desktop application in c#. And I used graph.facebook.com but I can see just some information. I think that to login facebook system and after send message some id. I looked developers.facebook.com but I didnt find useful information. Maybe I looked in wrong way..
I need some advice about it (how to login and send message)
I followed function of messange sendin on google chrome and I saw send.php worked . But I want to use Facebook API
By design Facebook does not allow the API to send messages. You can post on the other users wall, or send them an email.