开发者

When should use use "FB.Connect.showShareDialog" instead of "FB.Connect.streamPublish"?

开发者 https://www.devze.com 2022-12-20 10:02 出处:网络
It looks like they do virtually the same thing开发者_如何学编程 for simple posts.Do they show up in different place in Facebook? Any ideas?Using FB.Connect.streamPublish you are allowed to specify att

It looks like they do virtually the same thing开发者_如何学编程 for simple posts. Do they show up in different place in Facebook? Any ideas?


Using FB.Connect.streamPublish you are allowed to specify attachments (image, flash, mp3), action_links, and a user_message_prompt. The posting to their Profile may be more engaging if you go this route.

The FB.Connect.showShareDialog is mainly just a url that you pass in. Facebook loads that url to get the page title, and see if there are suitable thumbnail images specified on that page.

The main advantage of showShareDialog is that you can ask the users to click on "Send as Message instead" to send the link to specific friends. The default behavior is to "Post to Profile instead".

For basic uses, the two calls can be very similar, but they each have their own distinct capabilities too. I'm finding that I have a need for both in different cases.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号