Can a Facebook Application send a message to its users - facebook

Is it possible for a Facebook application to send a message to its users ? Sending the Message that we get next to notification(inbox) .On behalf of the Application. ?

The facebook api does not allow sending private messages (inbox) at all, not for an application or a user by an application.
For user (with a user access token) applications can use the Send Dialog or the Chat API.
As for sending user notifications from the application, check the Social Channels and Requests documentation.

Related

Facebook Messenger Inbox in a Web Dashboard

I am creating a web dashboard and want to integrate my facebook page messenger inbox on the dashboard, so we do not have to login into facebook or messenger to view and reply to the messages we have received on FB. For example the inboxes that frontapp, smooch provide.
I am not sure if I need to save the messages we get in webhooks and the replies also or we can access it through API.
I am also confused that if I create an app and connect that to the dashboard , that the user can reply from the dashboard and the message will be delivered to the user through the app, is it possible to send the message after the 24 hour window (plus 1 message) fb allows for apps if they reply from FB app, or it considered as bot as the messages are delivered through app.
You can get the page conversations:
https://developers.facebook.com/docs/graph-api/reference/v2.12/page/conversations
And then respond to them by conversation ID:
https://developers.facebook.com/docs/graph-api/reference/v2.12/conversation/messages

Need to send Email/Notification to Facebook User of iPhone app from server.

I have Facebook user's details Like FBid, Fb user name on my server data base. I want to send email/Notification of this user on Facebook. How can I achieve this. It is very easy to send this via my iPhone app because Facebook access token is on my device but I want to send notification via Server. Please let me know How can I send this. Thanks
What have you tried?
What I have already done : After R&D I found that "username#facebook.com" will work for send email to FB user, and it was working but after AWS setup its throwing mail bounce messages :(
http://www.facebook.com/help/224049364288051
How can I send email to a facebook friend using his facebook id via fql or graph api
Sending Email to #facebook

How do you post a link to user's inbox in Facebook?

I am a iPhone application developer. I don't know how to send an "link" to a selected user's inbox in Facebook from my Facebook account.
You can't send messages using a Facebook API from the backend, but you can do through JS SDK or redirecting user to facebook url as per this link
FYI: Send Message
I don't exactly know if I understood your question, but: If you want to provide a link that a user follows in order to go to her/his Facebook inbox, you can use the URL scheme fb://mailbox (provided that she/he has the Facebook app installed)
As #Venu wrote, the api does not allow apps to send messages on the behalf of the user, only with the Send Dialog which you should be able to open using the iOS sdk Dialog.
Another approach you can use is the Chat API with which you can send messages on the behalf of the user, it requires the xmpp_login permission and you to implement an xmpp client.

Sending messages from facebook App to the User

After google search, all most all the posts said it is not allowed to send messages from Facebook App to friends. May be I did not understand completely what the other people are saying about sending messages.
Is it allowed to send messages from a facebook app to the user who added the app to his account? (Not to the user's friends)
There are two ways to do it: email and through the application dashboard.
It is not possible to send a mesage to a user's Facebook message inbox from an application.
Some info on emailing users: http://developers.facebook.com/blog/post/355
Info on the dashboard: http://developers.facebook.com/docs/reference/rest/dashboard.addnews/
You can use FBML to invite friends.FBML

how to send facebook Notification or message via its api?

please let me know how can i Send facebook Notification or message via its API through a facebook app?
You can use the Old REST API to send notifications to users who have authenticated your application. First you must request the "email" extended permission from the user, then you can use the notifications.sendEmail method to send them the notification.
I used this dialog to send message one my one. But had no luck to send message to facebook account successfully.
https://www.facebook.com/dialog/send?app_id=MY_APP_ID&name=Check This Website&to=MY_APPLICATIONS_USER_ID&link=MY_WEBSITE_LINK&redirect_uri=MY_APPLICATION_URL