简体   繁体   中英

Facebook's sharer.php - default view

I'm using sharer.php to share an item to the user's wall.

The facebook sharer has 2 views:

Post to profile (default view) : alt text http://devgator.com/images/post_to_profile.png

And when you click on "send as a Message instead you get : alt text http://devgator.com/images/send_as_msg.png

What I'm trying to do is to have the 2nd view (send a message) as the default one. So when the user clicks 'Share this', it would show him directly the "send a message" view.

Is that even possible using facebook? or anything else? maybe executing js code after the popups opens ?

Thanks.

It's undocumented, but you can pass &mode=message&to=<user_id> to default to send message with sharer.php. Note: the like and/or send buttons are recommended.

Facebook just released a new "send" button to go with the "like" button.

This button allows you to send message directly to your friends ..

Here is an example :

<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
<fb:send href="example.com" font=""></fb:send>

See documentation : http://developers.facebook.com/docs/reference/plugins/send/

I think it's a solution for your problem ?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM