Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML How to Make a Website Adding Pages to a Website Build the Contact Page

Is there a similar option for a link that directly pulls up a Facebook message to a user?

Is there something like this: <a href="http://twitter.com/intent/tweet?screen_name=screenname"> to allow someone to send you a direct Facebook message?

1 Answer

jag
jag
18,266 Points

No, Facebook doesn't have that option to send you a direct message. Your options are either to direct them to your email, send a message via the website using php to your email, or using third party software to send you a text message (twilio or zapier). Doing the third party software is a bit complicated and will take time.

Alternative:

1) Facebook has an email [yourusername]@facebook.com

Check facebook help topic

2) Facebook does have a comment script that you can use to place a comment field that can alert your Facebook but it doesn't work as a Instant Message.