Mancent Posted November 3, 2012 Share Posted November 3, 2012 (edited) 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, Edited November 3, 2012 by Mancent Quote Link to comment Share on other sites More sharing options...
trq Posted November 3, 2012 Share Posted November 3, 2012 Sorry, but your question / post makes little sense. What is the question exactly? Quote Link to comment Share on other sites More sharing options...
Psycho Posted November 3, 2012 Share Posted November 3, 2012 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. Quote Link to comment Share on other sites More sharing options...
Mancent Posted November 3, 2012 Author Share Posted November 3, 2012 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. Quote Link to comment Share on other sites More sharing options...
Mancent Posted November 3, 2012 Author Share Posted November 3, 2012 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. Quote Link to comment Share on other sites More sharing options...
Mancent Posted November 3, 2012 Author Share Posted November 3, 2012 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.