Prefill Facebook messenger message or send out to the group - facebook

for one client we are trying to prepare solution, that after click on button will send from the users facebook messenger message to the facebook group with details like URL of the product etc.
Generally, I come to the product detail as a user, click on the Contact us button and, it will
Prefill the message with the URL to the product and some message
AND / OR
Send the message to the Facebook group that is responsible for the website the user is sending it from.
Is there any way to do this? I know how to do the opposite way of messaging, from the company to the user, but is it possible to do it this way?

Related

How to use the facebook send dialog but send a message and not a link

Everythin is in the title :
I want people that are on my website to send facebook messages between each others (between respective friends) : they signup on my site with their facebook account, and I know their friends. I just want them to easily talk between them without having to switch to facebook.
Or at least, if that is not possible, I want to open a new tab with their facebook on messenger with a prefilled to: field.
I never imagined this information could be so difficult to find

How to get the list of friends to whom a user has sent a private msg using the FB send button from my site?

I have a send button integrated on one of the pages of my site and I allow the users to share a link pointing to some private information with their facebook friends using this send button.
Only these friends who have received the message are supposed to access this link. In order to validate this, I want to capture the list of friends & possibly their FB ids to whom the user of my website sends a private FB message using the send button on my website.
Is there a way to capture this list i.e. the list of private message recipients as selected by the user?
Alternatively, is there a way that I provide a multi friend selector from where the user of my website selects the fb friends to whom they want to send a fb message and then using a FB send message api, I send this message - thus achieving the purpose as desired above?
The Send button does not allow you to see which Facebook Users the message was sent to.
You should instead use the Direct Requests Dialog instead:
http://developers.facebook.com/docs/reference/dialogs/requests/#direct_request
You can create your own multi-friend-selector and then use the above dialog to send the requests to friends. You can authenticate the request when the friend clicks on the Accept button. The function returns request and to, which contain the request_id and a array of user_ids, respectively.

facebook send dialog prepopulated with text

I am developing an application where I want to be able to send messages to friends.
I want to display a list of friends and besides each friend there is a button which triggers the send dialog.
But I want the dialog to be prepopulated with the friends's name and a text like: I want to invite you to this event..
How can I do this?
PS: I am not intending to send messages to multiple users at one time, as this is not possible. For each message sent there will be necessary the user hiting the send button
This is not possible, the Send button is designed for sharing URLs and doesn't allow the page owner to set the message which will be shared along with the content, or the intended recipients - it runs in an iframe so the browser security model will prevent you trying to do this manually.
If you want to have users send customised messages, check out the Feed dialog: http://developers.facebook.com/docs/reference/dialogs/feed/

How does RockMelt send Facebook messages?

Everything I've read says that you can't send messages but in RockMelt you can send your friend a beta invite through Facebook messages.
Are they using a preview of the Inbox API? Is there another way they're doing this?
This was taken from an answer on Quora that Eric Vishria the CEO of Rockmelt said:
"If a user wants to invite a friend who has not signed up on our site, we generate a download link, and pre-populate a Facebook message (in our own UI) that the user can edit/tailor and click Send, or copy and send via some other means (email, chat...).
We do not auto-send Facebook messages and the messages aren't from us, they are user to user.
If a user invites a friend who has signed up on our site (via the "Hook 'em up" button) that sends a notification to our backend that a user has been hooked up and we send that friend an email that such and such user has hooked them up. We are able to do this because when users sign up on our website, they connect via Facebook and authorize our application to send them email.
We spent a lot of time making the system not spammy (no auto posts to feeds, no automatic emails, etc....) where invites go to people who want them or users have to take an explicit action to tell their friends about it."
http://www.quora.com/What-Facebook-permission-enables-an-app-to-send-user-to-user-messages?redirected_qid=97754
To send a message to a friend you can use the Send Dialog, similar to the Feed dialog that will post to the wall but it lets the user select one or more friends and send a message:
https://developers.facebook.com/docs/reference/dialogs/send/

Send Reminder application invitation to facebook friends

Can facebook send reminder invitation for application request? In my web application ,member have facility to send invitation to his/her facebook friend for join my application. I am using facebook multi selector to send application invitation. I want to send a reminder invitation after a one week to facebook user which haven't join my application. Can anyone tell me how can i send a reminder to facebook user for join my application? Can facebook give any facility to send reminder via multiselector or if facebook provide and other facility.
Plz give any suggestion.
Thanks!
What about you go about it this way:
use the facebook API to connect the user and list his/her friend on your site with a checkbox beside each.
Send an invitation to the checked friends (via a dm maybe) and save the friend list in a db (you can call the table 'invites' and should include date, invitee and status). The invitation/registeration link should include a referer id to track the invitee.
Once the invitation is honored, GET the referer id and update the status to registered (you can denote that with 1).
Setup a daily cron to check for invites with not registered status that is 15 days. Resend invite to them.
Only problem is storing the user's friends has great privacy issues. If you must do it, make proper provisions in your privacy policy.