EF 4.1 Code First MVC3 App and Facebook Share Feat

2019-09-06 09:00发布

问题:

I am working on a simple web application made using Entity Framework 4.1 Code First approach and MVC3.

The web application is a simple Quotes website, and on its homepage, the user get a list of quotes. What I would like to do is have a Facebook Share button, like so:

And when a user clicks that button, I want the Quote author image, along with his quote and his name to be posted on the user's Facebook wall. I believe they call this Share Functionality.

After hours of Google searching, I couldn't find anything that would help me achieve this.

I would greatly appreciate some help.

Thank You.

回答1:

Sharing Rich Media https://developers.facebook.com/docs/share/

you should be able to populate the title, image and description tags to get something similar to what you want.