Facebook sharer.php - default view

I use sharer.php to share an item on a user’s wall.

Facebook sharer has 2 types:

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

And when you click send as message, you get: alt text http://devgator.com/images/send_as_msg.png

What I'm trying to do is make the 2nd view (send a message) as the default value. Therefore, when the user clicks "Send this", he will directly show him the "send message" view.

Is this even possible with facebook? or something else? perhaps js code execution after pop-ups popup?

Thank.

+3
source share
2 answers

Facebook just released a new submit button to go with the how button.

This button allows you to send messages 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 this is the solution to your problem?

+1
source

This is undocumented, but you can pass &mode=message&to=<user_id>by default to send a message using sharer.php. Note: It is recommended to use buttons and / or send.

+1
source

Source: https://habr.com/ru/post/1743255/


All Articles