允许Facebook应用程序的用户以某种方式进行交流 [英] Allowing users of facebook application to communicate somehow

查看:104
本文介绍了允许Facebook应用程序的用户以某种方式进行交流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Facebook平台上创建一个社交网络应用程序,我需要某种方式允许我的用户彼此交流以了解彼此的更多信息.在对SO进行了一些研究之后,发送私人消息似乎是一个非常受欢迎的话题,但是到目前为止,对我们来说最有希望的选择似乎是-

I'm creating a a social networking application on the Facebook platform and I need some way of allowing my users to communicate with each other to find out more about each other. After doing some research on SO it seems sending private messages is a very popular topic, but so far the most promising option for us seems to be this - Send private messages to friends - which is a pop-out JS client which unfortunately only allows you to send posts to your friends.

实际上,我发现这很奇怪,因为我似乎可以单击任何人的个人资料并转到发送消息"并在没有权限的情况下向他们发送消息,但是没有选择可以在您的应用程序用户之间发送消息他们的同意!

I actually find this very odd seeing as it appears that I can click on ANYONE'S profile and go to "send message" and send them a message WITHOUT permission, but there are no options to send messages between users of your app even WITH their permission!

1)我已经看到Facebook应用程序在用户之间提供联系,例如Yoke和其他约会应用程序,他们如何做到这一点?他们在编写自己的php消息传递系统吗?

1) I have seen Facebook applications which provide contact between their users such - Yoke and other dating applications - how do they do it? Are they writing their own php messaging systems?

2)有什么阻止我使用他们的Facebook电子邮件地址将消息发送到用户帐户的信息吗?显然,这将使不是您朋友的人可以向您发送电子邮件.

2) Is there anything stopping me from sending messages to a users account using their facebook email address? This will obviously allow people who aren't your friends to send emails to you.

感谢您阅读:D

推荐答案

您只需向username@facebook.com发送电子邮件即可向任何Facebook用户发送Facebook消息,它将自动以Facebook消息的形式到达他们的Facebook消息.不需要其他权限.

You can send a Facebook message to any Facebook user just by simply sending an email to username@facebook.com and it will automatically reach their Facebook Messages as a Facebook message. No additional permission is required for this operation.

<?php
    $to = "username@facebook.com";
    $subject = "Test mail";
    $message = "Hello! This is a simple email message.";
    $from = "me@facebook.com";
    $headers = "From:" . $from;
    mail($to,$subject,$message,$headers);
    echo "Mail Sent.";
?>

PHP邮件功能- http://php.net/manual/zh/function. mail.php

这篇关于允许Facebook应用程序的用户以某种方式进行交流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆