Jump to content

Facebook Send Message To Friends Email.


Mancent

Recommended Posts

I been trying to solve this problem for a while now, And it is very hard to send a simple message to a friend using php scripts,

 

Lets see ME AS A USER == UserID

then we have FRIEND AS A USER == FriendID

 

Ok Me send to Friend,

 

Message == Surely Message

Access Tokent Required Surely.== AcToken

I'm sure there is Message ID in there somewhere,== so MessageID

 

So were looking at some type of string here, it would be really nice to find the string url, something like.

 

https://www.facebook.com/ME/SendEmail.php?UserID={USERID}&FriendID={FRIENDID}&MessageID={MESSAGEID}&Message={THIS IS MY MESSAGE}&AcToken={ACTOKEN}

 

Wouldn't that be nice???

 

I think it would but its not correct at all, so is any one willing to help me make a simple php script that will do such a thing?

 

I'm sure it can be done,

Link to comment
https://forums.phpfreaks.com/topic/270235-facebook-send-message-to-friends-email/
Share on other sites

I believe he wants to be able to send a message to a friend on facebook using his own page/script.

 

@Mancent, you should first check to see if doing this is within the terms of service for facebook. If it is, check to see if they have an SDK for it. If they don't then go download a program called fiddler. It allows you to capture all traffic back and forth from your machine and internet sites. You can then send a test message on FB and see exactly what parameters are being passed.

The question is finding the url string to post to a friend email box on facebook.

 

The api says you can do it with all kinds of things like Livemessage.send and other Aip system they have.

 

https://developers.facebook.com/docs/chat/

 

and

 

https://developers.facebook.com/docs/reference/rest/

 

But all I need is the URL and telling me what vars they are passing I really like Psycho answer.

Ok this one right here, tells facebook when the other user is typing a message.

 

https://www.facebook.com/ajax/messaging/typ.php?typ=1&to=100000215611178&source=mercury-chat&thread=id.136195733151863&__user=100002957030150&__a=1&fb_dtsg=AQA8Ds-X&phstamp=165816556681154588116

 

But the problem I see is we have to be able to pull to get info to chat correctly,

All these vars, like the thread=id

 

I got to get that.

and i have no clue what this is...

 

__a=1&fb_dtsg=AQA8Ds-X&phstamp=165816556681154588116

 

anyways ill get it working. Thank you I really like Psycho answer.

And there it is:// that's insane.

 

http://www.facebook.com/ajax/mercury/send_messages.php?message_batch[0][action_type]=ma-type%3Auser-generated-message&message_batch[0][thread_id]&message_batch[0][author]=fbid%3A100002957030150&message_batch[0][author_email]&message_batch[0][coordinates]&message_batch[0][timestamp]=1351921604589&message_batch[0][timestamp_absolute]=Today&message_batch[0][timestamp_relative]=1%3A46am&message_batch[0][is_unread]=false&message_batch[0][is_cleared]=false&message_batch[0][is_forward]=false&message_batch[0][spoof_warning]=false&message_batch[0][source]=source%3Achat%3Aweb&message_batch[0][source_tags][0]=source%3Achat&message_batch[0][body]=gfd&message_batch[0][has_attachment]=false&message_batch[0][html_body]=false&&message_batch[0][specific_to_list][0]=fbid%3A100000215611178&message_batch[0][specific_to_list][1]=fbid%3A100002957030150&message_batch[0][status]=0&message_batch[0][message_id]=%3C1351921604589%3A283260014-4027228062%40mail.projektitan.com%3E&&message_batch[0][client_thread_id]=user%3A100000215611178&client=mercury&__user=100002957030150&__a=1&fb_dtsg=AQA8Ds-X&phstamp=1658165566811545881029

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.