Facebook 共享器和 Android 应用程序
基本上,我想向用户提供分享我的应用程序的 android market url。我不想使用“facebook api for android”,所以我的方式是这样的,当用户按下“在facebook上分享”按钮时,网络浏览器打开“www.facebook.com/sharer.php”,然后用户登录它并应用程序的市场 url 字符串粘贴在“写一些东西”(facebook 共享器的文本框)中。是否可以这样做,或者我必须使用 facebook api 来完成这项工作?
Basicly, i want to provide users to share my application's android market url. I do not want to use "facebook api for android" so my way is like that when the user press the button of "share on facebook", web browser opens "www.facebook.com/sharer.php" then user login it and application's market url string paste in "write something" (textbox of facebook sharer.) Is it possible to make like this or must i use facebook api for this work?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
请不要使用 sharer.php,因为它已被弃用,Facebook 可能随时完全撤回它。尝试查看是否 http://developers.facebook.com/docs/reference/dialogs/ feed/ 会为你工作。
Please don't use sharer.php as it is deprecated, Facebook may completely pull it at any time. Try to see if http://developers.facebook.com/docs/reference/dialogs/feed/ will work for you instead.
不,不是真的,除非你真的把事情搞砸了。
查看对话框文档: http://developers.facebook.com/docs/reference/dialogs/ ,他们为每个对话框提供一个 url,但如果您尝试使用它们,您会在对话框底部看到它“通过 Cool Social App 共享”。
如果您希望用户共享,您需要有一个应用程序,并且如果您已经有一个 Facebook 应用程序,并且您想从 Android 应用程序进行共享,那么是的,您可以使用对话框 url 打开 Web 浏览器,但使用android facebook sdk 将是一个更好的选择,因为它具有单点登录: http://developers.facebook.com/docs/mobile/android/sso/,这将检查用户是否已在移动设备中登录 facebook,如果是,则将跳过身份验证过程。
No, not really, unless you really hack things up.
Look at the dialogs documentation: http://developers.facebook.com/docs/reference/dialogs/, for each dialog they provide a url, but if you try them you'll see at the bottom of the dialog that it's "shared via Cool Social App".
You need to have an application if you want users to share, and if you already have a fb application, and you want to do the share from an android application, then yes you can just open a web browser with the dialog url, but using the android facebook sdk will be a much better choice since it has the Single Sign-On: http://developers.facebook.com/docs/mobile/android/sso/, that will check if the user is already signed in to facebook in the mobile device, and if so will skip the authentication process.