문제

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.

도움이 되었습니까?

해결책

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 ?

다른 팁

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top