开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜