Facebook: Share using Facebook app icon and "using such and such app" text
On our website we would like to allow users to share content that 开发者_运维百科they have read. We would like them to be able to click a "Share" button, which would then link up with our Facebook app.
So, the final post to the wall would be something like:
"I just saw this great deal!!"
[our icon] Today at 1pm via My Application Name
Now, we can easily do this from our iPhone app using the Facebook iOS sdk, but how can we do this same sort of thing from our website?
If you want to do that, you will have to use the SDK of your choice and then make a FB Connect to your app, ask for permissions to post in the users wall and then write a post into his wall.
You can customize text, and action buttons, and it will appear with your app icon as you request.
You add opengraph
tags to your site, specifically og:image
Have a look at: Open Graph protocol
Check out the Like button api. That is replacing or has replaced the share functionality. You can add that to your site and when a user clicks it, it will show up in their feeding saying they "like xyz" with whatever comment they enter.
精彩评论