Using fb: // To send a message via the Facebook web app

One of my sites has its own sharing plugin, which I wrote, and I would like to try to include the sharing feature in my own Facebook application, if possible. I know that you can use fb:// to open the application, but from what I read, this is part of FBML that has been deprecated for several years. I would like the link to open the FB application with a pre-populated link in the shared field, which the user could simply automatically share. Basically, the function sharer.PHP is a script (this is normal if it extracts data from OG tags).

I know that this can be done in iOS applications (and possibly Android), but is it possible to do this through the web interface?

I have links that I only use for displaying on mobile devices through some Javascript, so I don’t have to worry that this causes problems.

Thanks for your help!

+5
source share
1 answer
 var url = encodeURIComponent('http://example.org/'); window.open( 'https://www.facebook.com/sharer/sharer.php?u='+url, 'Share on Facebook', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600' ); 

This is the easiest way to do this;)

0
source

All Articles